html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body{
   background-color: black;
  font-family: Inter, sans-serif;
  color:white;
}

.app-container{
  display: flex;
  min-height: 100vh;
  width: 100%; 
  overflow-x: hidden;
}

.sidebar {
  display: none;
  width: 250px;
  background-color: rgba(0, 0, 0, 0.3);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  text-align: center;
  margin-left:-4px;
}

#sidebar-content{
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-self: center;
}

#sidebar-item{
  color:white;
  text-decoration: none;
}

#sidebar-item:hover{
  color: purple;
}

.main-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}


#announcements{
  display: none; 
  align-items: center; 
  justify-content: center;
  background-color: #ff000024; 
  width: auto;
  border-radius: 15px;
  font-size: 14px;
}

.navbar-main{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  margin: 0;
  box-sizing: border-box;
}

.navbar {
  display: flex;
  justify-content: space-between; 
  align-items: center;            
  background-color: rgba(0, 0, 0, 0.2); 
  padding: 15px 30px;             
  margin-bottom: 10px;
  margin-top: -24px;
  font-family: Inter, sans-serif;
}

#item-left{
  display: flex;
  justify-content: center;
  align-items: center;
}

#titleLink{
  text-decoration: none;
}

#logo{
  height: 80px;
  width: 100px;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-left: -15px;
}

.nav-item {
  color: #ffffff;
  text-decoration: none;          
  font-weight: 400;
  font-size: 16px;
  padding: 8px 16px;
  transition: all 0.2s ease-in-out;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.15); 
  border-radius: 5px;
  color: rgb(223, 211, 39);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

#logout-link-btn{
  background-color: unset;
  border:none;
  color: #ffffff;
  text-decoration: none;          
  font-weight: 400;
  font-size: 16px;
  padding: 8px 16px;
  transition: all 0.2s ease-in-out;
}

#logout-link-btn:hover {
  background-color: rgba(255, 255, 255, 0.15); 
  border-radius: 5px;
  color: rgb(223, 70, 39);
}

#msg{
  text-align: center;
}

#main-header{
  letter-spacing: 3px;
}

#browseBtn {
  background: none;
  border-radius: 10px;
  padding: 2px;
  border: none;
  color: white;
  cursor: pointer;
}

#browseBtn:hover {
  background-color: rgba(255, 255, 255, 0.15); 
  border-radius: 5px;
  color: rgb(223, 211, 39);
}

#browseBtn p{
  margin: 10px;
  font-size: 16px;
}

.browse-box {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: rgb(35, 31, 31);
  border: 1px solid #ccc;
  padding: 5px;
  width: 280px;
  z-index: 10;
  border-radius: 15px;
  top: 125%;
  left: auto;
  right: -100%;
}

.browse-box a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 25px;
  text-align: center;
  font-size: 0.85rem;
  width: 126px;
}

.browse-box a:hover {
  background-color: rgb(32, 115, 130);
  box-shadow: inset 0 1px 4px #22b3b0, 0 0 20px 2px #12bb83;
}

.content-bg{
  position: relative;
  overflow: hidden;
  padding: 200px;
  border-radius: 5px;
 
}

#backdrop-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: background-image 1s ease-in-out;
}

#backdrop-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

#backdrop-slider .slide.active {
  opacity: 1;
}

#backdrop-slider .slide-title {
  position: absolute;
  bottom: 10px;
  left: 20px;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0,0,0,0.8);
}

.content-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.content-overlay {
  position: relative;
  z-index: 2;
}

#movieBody{
  text-align: center;
  animation: dropIn 0.4s ease-out forwards;
}

#movieForm {
  position: relative;
  display: inline-block;
  width: 400px;
}

#movieForm input{
  background: transparent;
  background-color: black;
  border-radius: 16px;;
  padding: 10px;
  outline: none;

}

#movieForm input::placeholder{
  color: rgba(255, 255, 255, 0.7);
}

#movieForm #movieName{
  background: transparent;
  background-color: black;
  position: relative;
  width: 400px;
  font-size: medium;
  border-width: 2px;
  color:white;
  transition:  0.3s ease;
  padding: 20px;
}

#movieName:focus{
  outline: none;
  border-color: rgb(60, 205, 12);
  box-shadow: 0 1px 4px #18580e inset, 0 3px 20px 2px #104e08 !important;
}

#srchImg{
  height: 18px;
  width: 20px;
}

#searchBtn {
  position: absolute;
  right: 6px;
  top:2px;
  height: 100%;
  width: 43px;
  border-radius: 50%;
  background-color: unset;
  border: none;
  cursor: pointer;
}

#movieForm #movieRating{
  text-align: center;
  color:white;
  width: 140px;
  border:none;
    
}

.genre-wrapper {
  position: relative;
  display: inline-block;
}

.genre-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  position: absolute;
  background: rgb(35, 31, 31);
  color: white;
  border: 1px solid #ccc;
  padding: 10px;
  width: 280px;
  z-index: 10;
  border-radius: 5px;
}

.genre-box label {
  display: block;
  border-radius: 15px;
  cursor: pointer;
  padding: 5px;
  width: 100px;
  text-align: center;
}

.genre-box input[type="checkbox"]  {
  display: none;
}

.genre-box label:has(input:checked) {
  background-color:rgb(32, 115, 130);
  border-color: rgb(38, 138, 197);
  box-shadow: inset 0 1px 4px #22b3b0, 0 0 20px 2px #12bb83;
}

.hidden {
  display: none;
}

#genreBtn{
  background: transparent;
  background-color: black;
  border-radius: 10px;;
  padding: 12px;
  border:none;
}

#genreBtn:hover{
  filter: brightness(0.5);
}

#movieForm #yearRelease{
  color:white;
  width: 55px;
  border:none;
}

#typeSelector{
  background-color:rgba(49, 232, 162, 0.94);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;;
  padding: 10px;
  margin-left:5px;
}

#movieForm #submit{
  background: transparent;
  background-color: black;
  color: white;
  margin-top: 24px;
  padding: 15px;
  border:none;
}

#movieForm #submit:hover{
  filter:brightness(0.5);
}

* {
  box-sizing: border-box;
}

#popular-movie {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Adjust based on your preference */
  margin: 0 auto;
  overflow: hidden;
}

#popular-movie h2{
  margin-left: 22px;
  color: rgba(49, 232, 162, 0.94);
}


.popular-movie-grid{
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  gap: 14px;
  padding: 10px 20px;
  transition: transform 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.starrt-container{
  display: flex;
  gap: 5px;
}

.star{
  fill:gold;
}

.star-rating{
  font-size: 10px;
}

.popular-movie-grid::-webkit-scrollbar {
  display: none; 
}

#popular-movie-grid::-webkit-scrollbar {
  display: none; /* Hides scrollbar for Chrome/Safari */
}
.popular-poster-container{
  position: relative;
}

.popular-poster-container:hover{
  transform: scale(1.05);
  cursor: pointer;
}

.slider-container {
  position: relative;
  width: 100%;
  padding: 20px 0;
  animation: dropIn 0.4s ease-out forwards;
}


.slider-header {
  display: flex;
  justify-content: space-between; 
  align-items: center;            
  padding: -1px 40px;
  width: 100%;
}

.slider-header h2 {
  margin: 0;
}

.slide-btn {
  position: absolute;
  transform: translateY(230%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.slide-btn.left { left: 0; }
.slide-btn.right { right: 0; }

.popular-movie-card{
  border: 1px solid rgba(111, 99, 99, 0.577);
  transition: border-color 0.2s ease, transform 0.2s ease;
  width: 160px;
  color: inherit;
  z-index: 1;
  flex-shrink: 0;
  flex: 0 0 160px;
  text-decoration: none;
  transition: transform .25s, filter .25s;
  position: relative;
  border-radius: 15px;
}

.popular-movie-img{
  width: 100%;
  max-height: 240px;
  height: auto;
  border-radius: 15px;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 10px;
  height: 99%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popular-movie-card:hover .play-overlay {
  opacity: 1;
  width: 160px;    
}


.play-icon {
  font-size: 17px;
  color: white;
  background: rgb(215 251 180 / 73%);
  padding: 12px;
  border-radius: 50%;
  border: 2px solid white;
}

.movieInfo{
  display: flex;
  flex-direction: column; 
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  padding: 0 4px;
  margin-bottom: 15px;
}

.movieInfo p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movieTitleText {
  font-size: 14px;
  font-weight: 600;
}

.movieReleaseYear{
  font-size: 12px;
  color: grey;
  opacity: 0.7;
  flex-shrink: 0;
}

.mediaTypeInfo{
  font-size: 12px;
  color: grey;
  opacity: 0.7;
  flex-shrink: 0;
}

#air-td-link{
  text-decoration: none;
}

.airtdHead{
  margin-left: 22px;
  color: rgba(49, 232, 162, 0.94);
  font-size: 26px;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 10px;
}

#air-td-link:hover{
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-thickness: 2px;
  cursor:pointer;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 200px));
  column-gap: 35px;
  row-gap: 35px;
  justify-content: center;
  padding: 40px;
  margin-top: 30px;
}

.movie-card {
  position: relative;
  background-color: #111;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.2s ease, transform 0.2s ease;
  color: white;
  width: 200px;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 0 12px;
  margin-top: 20px;
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.movie-card-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 12px;
}

.movie-card:hover {
  transform: scale(1.05);
  border-color: rgba(49, 232, 162, 0.6);
  cursor: pointer;
}

.movie-card h3 {
  font-size: 1rem;
  margin-top: 10px;
}

.movie-card p {
  font-size: 0.85rem;
  margin: 4px 0;
}

#cntrl-btn{
  text-align:center; margin: 30px;
}

#txtPage{
  color: white; margin: 0 15px; font-weight: bold;
}

#showLess{
  background-color: blue;
  color:white;
  border-radius: 5px;
  text-decoration: none;
  padding: 5px;
}

#showLess:hover{
  filter: brightness(0.25);
}

#showMore{
  background-color: blue;
  color:white;
  border-radius: 5px;
  text-decoration: none;
  padding: 5px;
}

#showMore:hover{
  filter: brightness(0.25);
}

button{
  color: white;
}

.search-container {
  position: relative; 
  width: 400px; 
}

#suggestionsBox {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #000;
  border: 1px none #333;
  z-index: 9999;
  margin-top: 10px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
  overflow: auto;
  max-height: 300px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  color: white;
  transition: background 0.2s;
}

.suggestion-img{
  height: 10px;
}

.suggestion-item:hover {
  background: #21d07a;
  color: black;
}

.rec-box{
  margin-top:50px;
}

.rec-container{
  display: flex;          
  flex-wrap: wrap;           
  justify-content: center;   
  gap: 20px;                 
  padding: 20px;             
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.15); 
  border-radius: 15px;
  margin-bottom: 10px;
}

.rec-container select{
  background: transparent;
  background-color: black;
  color:white;
  border: none;
  padding: 8px;
  text-align: center;
  border-radius: 15px;
}

.rec-container select:hover{
  filter: brightness(0.5);
}

.navbar2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between; 
  align-items: center;            
  background-color: rgb(0 0 0 / 49%);
  padding: 15px 30px;             
  margin-bottom: 40px;
  box-sizing: border-box;
  z-index: 999;
}

.nav-title2 {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.nav-links2{
 display: flex;
 align-items: center;
 gap:20px;
}

.nav-item2 a{
  color: #ffffff;
  text-decoration: none;          
  font-weight: 400;
  font-size: 16px;
  padding: 8px 16px;
  transition: all 0.2s ease-in-out;
}

.nav-item2 a:hover{
  background-color: rgba(255, 255, 255, 0.15); 
  border-radius: 5px;
  color: rgb(223, 211, 39);
}

#searchForm{
  display: flex;
  align-items: center;
}

#searchForm #movieName{
  border-radius: 5px;
  padding: 5px;
}

#srchImg2{
  position: relative;
  width: 15px;
  height: 13px;
  right: 24px;
  top: 2px;
}

/* Favorite navbar */
.navbar3 {
  display: flex;
  justify-content: space-between; 
  align-items: center;            
  background-color: rgba(0, 0, 0, 0.2); 
  padding: 15px 30px;             
  margin-bottom: 40px;
  font-family: Inter, sans-serif;
}

.nav-title3 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.nav-item3 a{
  color: #ffffff;
  text-decoration: none;          
  font-weight: 400;
  font-size: 16px;
  padding: 8px 16px;
  transition: all 0.2s ease-in-out;
}

.nav-item3 a:hover{
  background-color: rgba(255, 255, 255, 0.15); 
  border-radius: 5px;
  color: rgb(223, 211, 39);
}

#elemNav{
  padding-right: 10px;
}

#dltForm{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}

#deleteBtn{
  background-color: rgb(255, 0, 0);
  color:white;
  border-radius: 10px;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 15px;
}

#deleteBtn:hover{
  filter: brightness(0.25);
}

#backHome{
  margin-bottom: 10px;
}

#deleteAllBtn{
  background-color: rgb(255, 0, 0);
  color:white;
  border-radius: 10px;
  font-size: medium;
}

#deleteAllBtn:hover{
  filter: brightness(0.25);
}

.poster-container {
  position: relative;
  width: 100%;
  height: 260px;
}

/* Base style for the certification pill badge */
.cert-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cert-badge.G {
  border-color: #2e7d32;
  color: #4caf50;
}

.cert-badge.PG {
  border-color: #f57c00;
  color: #ffb74d;
}

.cert-badge.PG-13 {
  border-color: #d32f2f;
  color: #ef5350;
}

.cert-badge.R {
  background-color: #b71c1c;
  border-color: #ff1744;
  color: white;
}

.heart-btn {
  position: static; 
  width: auto;
  height: auto;
  background: none; 
  border: none;
  cursor: pointer;
  padding: 5px;
  opacity: 1;
  z-index: 10;
  display: flex; 
}

.movie-card:hover .heart-btn {
  opacity: 1;
}

.heart-icon {
  background-color: rgba(255, 255, 255, 0.6);;
  width: 25px;
  aspect-ratio: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center;
  transition: background-color 0.3s; 
}

.heart-btn.active .heart-icon {
  background-color: #e50914;
  opacity: 1;
}

#int-btns{
  display: flex;
}

.watchlist-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
}

.eye-icon {
  background-color: rgba(255, 255, 255, 0.6);
  width: 25px;
  aspect-ratio: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-eye-icon lucide-eye'%3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-eye-icon lucide-eye'%3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center;
  transition: background-color 0.3s;
}

.watchlist-btn.active .eye-icon {
  background-color: #1895f5;
}

#chatbot-container{
  display: none;
  position: fixed; 
  bottom: 20px;   
  right: 20px;
  flex-direction: column;
  background-color: #007bff;
  color: white;
  width: 450px;
  min-height: 50px; 
  border-radius: 10px;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  overflow: hidden;
  max-height: 300px;
}

#chatbot-header{
  display: inline-flex;
  justify-content: space-between;
  padding: 0 15px;
  width: 100%;
}

#chatbot-button{
  background-color: unset;
  border:none;
  cursor: pointer;
  font-size: 20px;
}

#chatbot-body {
  padding: 15px;
  background-color: #232323;
  color: lightblue;
  color: black;
  flex-grow: 1;
  overflow-y: auto;  
}

#chat-messages{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

#user-input{
  display: flex;
  justify-content: end;
  margin-top: 20px;
  gap: 18px;
}

#chat-input{
  background-color:rgba(49, 232, 162, 0.94);
  border:none;
  padding: 8px;
  field-sizing: content; 
  min-width: 300px;
  border-radius: 5px;
}

#clear-btn{
  background-color: rgb(229 35 55);
  border: none;
  border-radius: 5px;
  padding: 10px;
  margin-right: -6px;
}

#clear-btn:hover{
  background-color: rgba(229, 35, 55, 0.771); 
  cursor: pointer;
}


#send-btn{
  background: rgb(13, 92, 239);
  border:none;
  border-radius: 5px;
}

#send-btn:hover{
  background-color: rgba(13, 92, 239, 0.771); 
  cursor: pointer;
}

.user-msg {
  max-width: 80%;
  background-color: rgb(47 52 68 / 64%);
  text-align: right;
  color: #4ade80;
  word-wrap: break-word;
  margin: 5px 0;
  padding: 10px;
  border-radius: 15px 8px;
  align-self: flex-end;
}

.bot-msg {
  max-width: 80%;
  background-color: rgb(47 52 68 / 64%);
  text-align: left;
  color: #d38282;
  margin: 5px 0;
  padding: 10px;
  border-radius: 15px 8px;
  word-wrap: break-word;
  align-self: flex-start;
}

.bot-msg strong {
  font-weight: bold;
}

.bot-msg li {
  margin-left: 15px;
  list-style-type: disc;
}


.air-td-body{
  background-color: black;
}

.main-cont-td{
  flex: 1;
  padding-top:45px;
  min-width: 0;
  width: 100%;
  
}

/* /airing page css*/

#airDate{
  display: flex;
  flex-direction: column;
  text-align: center;  
}

.airHeaders{
  
}

.airInfo{
  margin-top: 76px;
  animation: dropIn 0.4s ease-out forwards;
}

#air-controls{
  display: flex;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

#prev{
  background :none; 
  border:none;
  font-size: 26px;
  font-weight: bold;
}

#prev:hover{
  cursor: pointer;
  color:red;
}

#day-display{
  text-align: center;  
  animation: dropIn 0.4s ease-out forwards;
}

#next{
  background :none; 
  border:none;
  font-size: 26px;
  font-weight: bold;
}

#next:hover{
  cursor: pointer;
  color:red;
}

.time-slot {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.time-label {
  min-width: 70px;
  font-size: 1.1rem;
  font-weight: bold;
  color: red;
  padding-top: 8px;
  position: sticky;
  top: 60px;
}

.time-slot-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.air-card {
  display: flex;
  gap: 10px;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 10px;
  width: 337px;
}

.air-card:hover{
  cursor: pointer;
  transform: scale(1.05);
}

.air-card img {
  width: 150px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.air-card-info{
  display: flex;
  flex-direction: column;
}

.air-card-info h3 {
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.air-card-info p {
  font-size: 0.75rem;
  color: #aaa;
  margin: 2px 0;
}

.air-summary {
  font-style: italic;
}

.watched-badge {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  background: rgba(33, 208, 122, 0.85);
  color: black;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 0;
}

.watched-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  color: white;
}

.watched-btn.active {
  background: rgba(33, 208, 122, 0.3);
  border-color: #21d07a;
  color: #21d07a;
}

.remove-btn {
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.4);
  border-radius: 5px;
  padding: 4px 8px;
  color: #ff6b6b;
  cursor: pointer;
}

.movie-card-bottom-bar-watch-page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 12px;
  margin-top: 10px;
}

.remove-btn:hover {
  background: rgba(255, 0, 0, 0.4);
}

#anime-choice-bar{
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
  flex-wrap:wrap; 
  gap:12px; 
  padding:77px 20px 0; 
  margin-bottom: 13px;

}

#choice-barBtn{
  display:flex; 
  gap:10px; 
  flex-wrap:wrap;
}

#choice-barBtn a{
  color:white;
  padding:8px 16px; 
  border-radius:8px; 
  text-decoration:none; 
  font-size:14px;
}

#filterBox{
  display:flex; 
  align-items:center; 
  gap:8px;
}

#filterBtn{
  background:#2a2a2a; 
  color:white; 
  padding:8px 16px; 
  border-radius:8px; 
  border:1px solid #444; 
  font-size:14px; 
  cursor:pointer;
}

#viewOption-box{
  display:flex; 
  gap:6px; 
  align-items:center; 
  padding: 0 20px;
}

.hamburger2 {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* For Smaller devices, more work will come around */
@media (max-width: 690px) {
  .main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
  }

 .hamburger {
    display: block; /* Show the button */
  }

  .navbar{
    width: 100%;
  }

  .navbar-main{
    width: 100%;
  }

  .nav-links { 
    display: none; 
    flex-direction: column; 
    position: absolute; 
    top: 60px; 
    left: 0; 
    width: 100%; 
    background: #1a1a1a; 
    padding: 20px; 
    z-index: 1000;
  }
 
  .nav-links.active { 
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  .navbar .nav-greeting {
    margin-right: 0;
    margin-bottom: 5px;
    font-size: 0.95rem;
    opacity: 0.9;
  }

  #fav-list{
    margin-top: 10px;
  }

  #main-header{
    letter-spacing: 1px;
    margin-top: 80px;
  }

  .slide-btn {
    display: none;
  }

  .content-bg {
    padding: 40px 20px;
  }

  #movieForm {
    width: 100%;
  }

  #movieForm #movieName {
    width: 100%;
  }

  .search-container {
    width: 100%;
    max-width: 340px;
  }

  .rec-container {
    padding: 10px;
    gap: 10px;
  }

  .rec-box h3 {
    font-size: 0.9rem;
  }

  .genre-box {
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: absolute;
    text-align: center;
    background: rgb(35, 31, 31);
    color:white;
    border: 1px solid #ccc;
    padding: 10px;
    width: 280px;
    z-index: 10;
    border-radius: 5px;
}
  .hidden{
    display: none;
  }
  #popular-movie h2{
    font-size: 20px;
    margin-left: 22px;
    color: rgba(49, 232, 162, 0.94);
  }

  .popular-movie-grid{
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 14px;
    padding: 10px 20px;
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-top: 10px;
  }

  #backdrop-slider .slide-title {
    font-size: 1rem;
  }

  .popular-movie-card{
    width: 160px;
    color: inherit;
    z-index: 1;
    flex-shrink: 0;
    flex: 0 0 88px;
    text-decoration: none;
    transition: transform .25s, filter .25s;
    position: relative;
  }

  .popular-movie-card:hover .play-overlay {
    opacity: 1;
    width: 88px;
    height: 133px;
    border-color: rgba(49, 232, 162, 0.6);
  }

  .navbar .nav-item, 
  .navbar #logout-link-btn {
    width: 100%;
    max-width: 200px; 
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar .nav-links form {
    display: block !important;
    width: 100%;
    text-align: center;
  }

  #showLess{
    font-size: medium;
    border-style: hidden;
    padding:5px;
  }

  #showMore{
    font-size: medium;
    border-style: hidden;
    padding:5px;
  }

  #cntrl-btn{
    text-align:center; 
    margin-left: 10px;
  }

  #txtPage{
    color: white; 
    margin: 0 15px; 
    font-weight: bold;
  }

  .nav-title2{
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-right: 40px;
  }

  .nav-links2{
    display: flex;
    align-items: center;
    gap:5px;
  }

  .navbar2 {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .navbar2 .hamburger2 {
    display: block;
  }

  .navbar2 .nav-links2 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  }
 
  .navbar2 .nav-links2.open {
    display: flex;
  }

  .navbar2 .nav-links2 > a,
  .navbar2 .nav-links2 .nav-item {
    width: 100%;
    text-align: left;
    padding: 12px 18px;
    border-radius: 0;
  }

  .navbar2 .nav-links2 > a:hover,
  .navbar2 .nav-links2 .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }

  .navbar2 .nav-links2 #searchForm {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 18px;
    gap: 6px;
    box-sizing: border-box;
  }

  /* Input takes the available width. */
  .navbar2 .nav-links2 #searchForm #movieName {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 6px;
  }

  /* Search button sits inline; no absolute pull. */
  .navbar2 .nav-links2 #searchForm #searchBtn {
    position: static;
    width: auto;
    height: auto;
    flex-shrink: 0;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Reset the icon's desktop offset so it centers in the button. */
  .navbar2 .nav-links2 #searchForm #srchImg2 {
    position: static;
    right: auto;
    top: auto;
    width: 18px;
    height: 18px;
  }

  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px; 
    padding: 2px 8px;
    margin: 0;
    width: 100%;
    row-gap:46px;
    margin-left: 18px;
  }

  .movie-card {
    width: 160px;
    color: inherit;
    z-index: 1;
    flex-shrink: 0;
    flex: 0 0 88px;
    text-decoration: none;
    transition: transform .25s, filter .25s;
    position: relative;
  }

  .poster-container {
    position: relative;
    width: 100%;
    height: 260px;
    margin-bottom: 10px;
  }

  .poster-container img {
    width: 100%;
    height: 260px;
    object-fit: cover; /* This prevents the image from looking stretched */
  }

  .movie-card h3 {
    font-size: 0.85rem; 
    margin: 5px 0;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
  }

  .movie-card p {
    font-size: 0.7rem;
  }

  #anime-choice-bar{
    display:flex; 
    justify-content:space-between; 
    align-items:center; 
    flex-wrap:wrap; 
    gap:12px; 
    padding:77px 10px 13px; 
    margin-bottom: 13px;
    margin-top: -78px;
  }

  #choice-barBtn{
    display:flex; 
    gap:10px; 
    flex-wrap:wrap;
    padding: 10px;
  }

  #choice-barBtn a{
    color:white;
    padding:8px 16px; 
    border-radius:8px; 
    text-decoration:none; 
    font-size:14px;
  }

  #filterBox{
    display:flex; 
    align-items:center; 
    gap:8px;
    margin-left:20px;
  }

  #filterBtn{
    background: #2a2a2a;
    color: white;
    padding: 5px 9px;
    border-radius: 8px;
    border: 1px solid #444;
    font-size: 14px;
    cursor: pointer;
  }

  #viewOption-box{
    display:flex; 
    gap:6px; 
    align-items:center; 
    padding: 0 20px;
    margin-bottom: 50px;
  }
}
