
* {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #1f1c2c, #928dab);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    overflow: hidden;
  }

  .header {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 5px;
  }
  .header-top {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 0 0px;
      margin-bottom: 20px;
      gap: 25px;
    }

    .left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .fa-search {
      display: none;
      align-self: center;
      width: 34px;
      height: 34px;
      cursor: pointer;
    }

    .sort {
      width: 20px;
      height: 20px;
    }
          
    .logo {
      font-size: 35px;
      font-weight: bolder;
      color: #fff;
      flex-shrink: 0;
      border-radius: 50%;
    }
    
    .search-input {
      flex-grow: 1;
      padding: 12px 20px;
      border: none;
      border-radius: 30px;
      background: white;
      color: white;
      outline: none;
      backdrop-filter: blur(10px);
      box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.2);
    }
    

  ul {
    display: flex;
    list-style: none;
    gap: 15px;
    padding: 0;
    margin: 0;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .tab-item {
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    border-radius: 15px;
    transition: 0.3s;
  }

  .tab-item:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .tab-item::after {
    content: '';
    align-self: center;
    width: 0%;
    height: 1px;
    background: white;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 2px;
    transition: 0.5s;
  }

  .tab-item.active::after {
    width: 100%;
  }


  .popup {
      position: fixed;
      right: -5px;
      top: -5px;
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: start;
      padding: 0 20px;
      border-radius: 10px;
      box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
      z-index: 100;
      backdrop-filter: blur(16px) saturate(180%);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      background-color: rgba(17, 25, 40, 0.95);
  }
  .pop-item {
      display: flex;
      justify-content: start;
      align-items: center;
      cursor: pointer;
  }
  .pop-item .fas{
      padding-right: 10px;
      font-size: 24px;
      color: orange;
  }
  .pop-item .label {
      font-weight: 700;
  }

  .section-container {
    margin-top: 20px;
    flex: 1;
    overflow-y: auto;
    width: 100%;
  }

  .section-container::-webkit-scrollbar {
    display: none;
  }

  .movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    max-width: 98%;
    margin: auto;
  }

  .movie-card:hover {
    transform: translateY(-5px);
  }

/* movie Card Styling */
.movie-card {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
  aspect-ratio: 167 / 290; /* Maintain consistent aspect ratio */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content properly */
  align-items: center;
}

/* movie Card Image */
.movie-card img {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  object-fit: contain;
}

/* Discount Tag */
.discount-tag {
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: orange;
  color: #fff;
  font-size: 12px;
  padding: 3px 5px;
  border-radius: 8px 3px 3px 3px;
}

/* movie Card Title */
.movie-card h3 {
  position: absolute;
  bottom: 0px;
  font-size: 14px;
  text-align: center;
  color: rgb(206, 205, 205);
  font-weight: bold;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* Limit to two lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* movie Card Styling */
.movie-card {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(17, 25, 40, 0.64);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(5, 4, 4, 0.1);
  overflow: hidden;
  position: relative;
  aspect-ratio: 167 / 290; /* Maintain consistent aspect ratio */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content properly */
  align-items: center;
}

/* movie Card Image */
.movie-card img {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  object-fit: contain;
}

.carousel-section {
  max-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}
.carousel-section::-webkit-scrollbar {
    display: none;
  }

.carousel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
  width: 100%;
}


.carousel h3 {
  margin: 0 0 10px 10px;
  font-weight: 600;
  color: orange;
}

.carousel-items {
  gap: 10px;
  display: flex;
  overflow-x: auto;
  padding: 10px;
}

.carousel-items::-webkit-scrollbar {
  display: none;
}



.carousel-items {
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.item {
  flex: 0 0 auto;
  width: auto;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(17, 25, 40, 0.64);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(5, 4, 4, 0.1);
  overflow: hidden;
  display: flex;
  aspect-ratio: 167 / 290;
  color: white;
  font-weight: bold;
  scroll-snap-align: start;
  flex-direction: column;
  justify-content: flex-start; /* Align content properly */
  align-items: center;
  position: relative;
}


.carousel-items > * {
  flex: 0 0 160px; /* Items will have a fixed width of 80px */
  height: auto;
}

.item img {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  object-fit: contain;
}
.item h3 {
  position: absolute;
  bottom: 0px;
  font-size: 14px;
  text-align: center;
  color: rgb(206, 205, 205);
  font-weight: bold;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* Limit to two lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loader {
  width: 30px;
  height: 30px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 15px;
  flex-shrink: 0;
}

@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}


.loading {
display: flex;
justify-content: center;
align-items: center;
width: 100px;
}

.loading-indicator {
width: 60px;
height: 60px;
border-width: 1px;
border-color: aliceblue;
border: 1px solid rgb(167, 166, 166);
border-top: 1px solid rgb(212, 212, 212);
border-right: 1px solid rgb(240, 239, 239);
border-left: 1px solid white; /* Active segment */
border-radius: 50%;
animation: spin 1s linear infinite;
clip-path: polygon(50% 50%, 100% 0, 100% 100%, 50% 100%);
}

@keyframes spin {
0% {
  transform: rotate(0deg);
}
100% {
  transform: rotate(360deg);
}
}

.loading-style {
height: 69vh;
width: 100%;      
display: flex;
justify-content: space-evenly;
flex-direction: column;
align-items: center;

}
.loading-style h1{

font-weight: bolder;
font-size: 60px;
color: orange;
}

.pagination {
position: fixed;
bottom: 2px;
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
padding: 10px;
flex-wrap: wrap;
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
background-color: rgba(1, 2, 4, 0.89);
}
.pagination button {
padding: 8px 12px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #f0f0f0;
cursor: pointer;
}
.pagination button.active {
background-color: orange;
color: white;
border-color: orange;
}
.pagination button:disabled {
background-color: #e0e0e0;
cursor: not-allowed;
}
/* Responsive Adjustments for Tablets */
@media (max-width: 768px) {
.search{
    display: block;
}
.list-item-title {
    padding-left: 10px;
    font-size: 20px;
}
.carousel-items > * {
  flex: 0 0 120px; /* Items will have a fixed width of 80px */
  height: auto;
}
.movie-card h3 {
    font-size: 10px;
}

.item h3 {
    font-size: 10px;
}
.sort {
    width: 20px;
    height: 20px;
}
.actions i {
    padding-left: 40px;
    font-size: 20px;
}
.actions {
    padding-right: 13px;
}
.movies-grid {
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); /* Adjust column size for tablets */
    gap: 15px; /* Slightly reduced gap for smaller screens */
    margin: 15px; /* Reduced margin */
}

.input {
    display: none; /* Hide input for smaller screens */
}
}

/* Responsive Adjustments for Mobile */
@media (max-width: 480px) {
.leading {
    font-size: 30px;
}
.carousel-items > * {
  flex: 0 0 90px; /* Items will have a fixed width of 80px */
  height: auto;
}

.sort {
    width: 20px;
    height: 20px;
}
.movies-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Compact columns for extra small screens */
    gap: 10px; /* Further reduced gap */
    margin: 10px;
}
}
@media (max-width: 768px) {
.pagination {
    gap: 5px;
}
.pagination button {
    padding: 5px 8px;
    font-size: 14px;
}
}

/* Responsive styling for mobile view */
@media (max-width: 600px) {
.header-top {
  gap: 10px;
}

.search-input {
  display: none; /* Hide input */
}

.fa-search {
  display: flex;
}

ul {
  width: 100%;
  justify-content: start;
  flex-wrap: nowrap;
  overflow-x: scroll;
  gap: 8px;
}

ul::-webkit-scrollbar{
  display: none;
}

.tab-item {
  padding: 6px 12px;
  font-size: 14px;
}
}

