
body {
  background: radial-gradient( circle at 38% 85%, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.05) 35%, #2d2828 80% );
  background-color: #000;  /*Fallback for unsupported browsers */
  background-attachment: fixed; /* Keeps the background fixed */
  background-size: cover; /* Ensures it covers the entire viewport */
  background-repeat: no-repeat; /* Prevents tiling */
  color: white; /* Text color for contrast */
 /* height: 100vh;*/
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: 80px; /* Matches the height of your fixed header */
  box-sizing: border-box;
  padding-bottom: 40px; /* Reserve space for footer */
}

.user-initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #0658d9;
    color: #00ff40;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;  
	font-size: 1rem;	
    transition:  background-color 0.3s ease,  color 0.3s ease;
}

.user-initial:hover {
    background-color: #00ff40;
    color: #0658d9;
 }


.user-menu {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

#user-menu:hover .dropdown-content {
    display: block;
}


.social {
	margin-top: 10px;
}

/* ********** Search Field */
.search-dropdown {
  max-height: 0; /* Start hidden */
  overflow: hidden; /* Prevents content from spilling out */
  position: relative;
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0 20px; /* Initial padding for a clean collapse */
  z-index: 1000;
  margin-top: 10px; /* Space between nav and dropdown */
  box-sizing: border-box; /* Includes padding within the element width */
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.search-dropdown.open {
  max-height: 1300px; /* Set a maximum height that fits the content */
  padding: 20px; /* Restore padding when opened */
}

.search-icon img {
  width: 20px; /* Adjust icon size */
  height: 20px;
  padding-top: 5px;
  margin-right: 20px;
  cursor: pointer; /* Indicate it's clickable */
}

.search-content {
  max-width: 600px; /* Max width for the content */
  margin: 0 auto; /* Center the content */
  color: darkgray; /* Dark gray font color */
  display: flex;
  flex-direction: column;
}

.search-input-container {
  position: relative;
  display: flex;
  margin-top: 10px;
}

.search-dropdown .search-content h2 {
  color:#007bff;
  margin: 0;
  padding: 0;
}

.search-dropdown .search-content h4 {
  margin: 0;
  padding: 5px;
}

/*.search-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none; 
  color: #828282;
}

.search-input:focus {
  border: 1px solid #007BFF; 
  box-shadow: 0 0 4px #007BFF; 
}

.search-button {
  padding: 10px 15px;
  margin-left: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}*/
/* Container for search input and button */
.search-input-container {
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid #ccc;
  border-radius: 4px;
  /* overflow: hidden; Ensures elements are contained */
  transition: border-color 0.3s;
}

/* Change border color when input is focused */
.search-input-container:focus-within {
  border-color: #007BFF;
  box-shadow: 0 0 4px #007BFF;
}

/* Search input */
.search-input {
  flex: 1;
  padding: 10px;
  border: none; /* Remove input border */
  outline: none; /* Removes default blue outline */
  color: #828282;
}

/* Search button */
.search-button {
  padding: 10px 15px;
  background-color: #fff;
  color: white;
  border: none;
  cursor: pointer;
  border-left: 1px solid #ccc;
  position:relative;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;  
}

.search-button img {
	width: 20px;
	height: auto;
}

.search-button:hover {
  background-color: #ffbf00;
}

.advanced {
  position: absolute; /* Position it inside the container */
  right: 0; /* Align to the right edge of the input field */
  top: 100%; /* Position it directly below the input */
  font-size: 12px; /* Adjust the font size */
  padding: 4px 0px 8px 4px; /* Adjust padding for size */
  cursor: pointer; /* Make it clickable */
  /* background-color: #007bff; Match the button color */
  color: gray; /* Text color */
  /*border-radius: 4px;  Rounded corners */
  margin-top: 4px; /* Space between input and "Advanced" button */  
}

/* Advanced button hover effect */
.advanced:hover {
  color: black; /* Optional: Change text color */
}

/* Prevent shared hover between siblings */
.search-input-container:hover .search-button:not(:hover) {
  background-color: #fff; /* Reset hover effect when not directly on .search-button */
}

.advanced-content {
  max-width: 800px; /* Max width for the content */
  margin: 0 auto; /* Center the content */
  color: darkgray; /* Dark gray font color */
  display: flex;
  flex-direction: column;
}

.advanced:hover {
  color: #0056b3; /* Change color on hover */
  background-color: transparent;
}

.close-button {
  margin-top: 17px;
  background: none;
  border: none;
  color: gray;
  cursor: pointer;
  font-size: 16px;
  letter-spacing:0.06em;
}

.close-button img{
  margin-top: 17px;
  width: 20px;
  height: auto;
  margin: 0 auto;
}


/* Styling for the advanced search dropdown */
.advanced-dropdown {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;  /* Adjust padding for transition */
  background: #f5f5f5;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: max-height 0.5s ease-out, padding 0.3s ease; /* Smooth transition */
}

/* Show the advanced dropdown when it has the 'active' class */
.advanced-dropdown.active {
  max-height: 900px; /* Set a large enough max-height */
  padding: 20px; /* Add padding when visible */
  overflow-y: auto; /* Enable vertical scrolling if content exceeds max-height */
  /*display: block;*/
}

/* Section styling within the dropdown */
.advanced-section {
  margin-bottom: 0px;
}

.advanced-section h3 {
  margin: 0;
  font-size: 12px;
  color: #007bff;
  font-weight: bold;
}

/* Thin line between sections */
.advanced-section:not(:last-child) {
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

/* Styling for filter input fields */
.filter-input {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.filter-range {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-range input {
  width: 100px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Close button styling 
.close-advanced-button {
  display: block;
  background: none;
  border: 1px solid #ccc;
  color: #007bff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
}

.close-advanced-button:hover {
  background-color: #007bff;
  color: white;
}*/
.close-advanced-button {
  margin-top: 17px;
  background: none;
  border: none;
  color: gray;
  cursor: pointer;
  font-size: 16px;
  letter-spacing:0.06em;
}
.close-advanced-button {
  display: flex;             /* Use flexbox to center content */
  justify-content: center;   /* Align horizontally */
  align-items: center;       /* Align vertically */
  width: 100%;               /* Set the width of the button */
  height: 40px;              /* Set the height of the button */
  background-color: transparent; /* Optional: if you want a transparent background */
  border: none;              /* Optional: remove the border */
  cursor: pointer;          /* Change cursor to pointer when hovering */
}

.close-advanced-button img {
  width: 20px;               /* Set the width of the image */
  height: auto;              /* Maintain aspect ratio */
}


.advanced-search-button {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto; /* This pushes it to the right */
  display: block; /* Ensures it takes up available width and is aligned to the right */
}

/* Show the advanced dropdown when active */
.search-dropdown.active .advanced-dropdown {
  display: block;
}

/* *********** End Search Field */

.minht {
  min-height: calc(100vh - (40px + 30px));
  position:relative;
  display: flex;
  flex-direction: column;
}

html, body {
    height: 100%; /* Ensure the viewport is filled */
    margin: 0; /* Remove default margins */
    display: flex;
    flex-direction: column;
}

header {
  position: fixed; /* Default positioning */
  overflow: visible;  /* Ensure no clipping */
  background-color: #ffbf00;
  padding: 0;
  top: 0;
  width: 100%;
  padding-top: 5px;
  padding-bottom: 5px;
  z-index:10;
  /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);*/
}

.page-container {
    flex: 1; /* Makes content expand to push footer down */
    display: flex;
    flex-direction: column;
}

.logo img {
	position: absolute;
	top: 10px;
    height: 40px;
    width: auto;  
    display: block;
}
/* Mobile Menu Bar */


/* Menu Bar */
.menu-bar {
  color: white;
  display: flex;
  position: sticky;
  top: 0;
  z-index: 10;
  justify-content: center;
  margin: 0px 0px 0px 60px;
  /*padding: 20px;*/
}

.menu-item {
  position: relative;
  text-decoration: none;
  color: black;
  font-weight: bold;
  padding: 5px 0px 5px 20px;
  transition: color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.menu-item-sign {
  position: relative;
  text-decoration: none;
  color: black;
  font-weight: bold;
  padding: 5px 0px;
  transition: color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  margin: 0;
}

.menu-item:not(.sign):not(.search-icon)::after {
    content: '★ ★ ★ ★ ★';
    position: absolute;
    top: 100%; /* Positions it below the text */
    left: 50%; /* Centers horizontally */
    transform: translate(-50%, -10px); /* Centers the element */
    white-space: nowrap; /* Prevent wrapping */
    color: black;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-item:hover:not(.sign):not(.sign)::after {
    opacity: 1;
    transform: translate(-50%, 0); /* Smooth transition to visible */
}


/* Content Area */
.content {
  flex: 1;
  /*display: flex;  Keeps thumbnails flexible */
  /*flex-wrap: wrap;  Ensures content wraps properly */
  /*justify-content: center; space-around; Centers the thumbnails horizontally */
  gap: 20px; /* Adds spacing between items */
  /*max-width: 1200px;  Limits content to 1200px */
  margin: 0 auto; /* Centers content horizontally */
  padding: 20px;
  box-sizing: border-box; /* Ensures padding is included in dimensions */
}

/* Optional for Demo: Placeholder Rows */
.content .movie-row {
  margin: 20px 0;
  /*background: rgba(255, 255, 255, 0.05);  Slight row highlight */
  padding: 10px;
  border-radius: 5px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;  
  box-sizing: border-box;
  flex: 1;  
  display: block;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;  
  box-sizing: border-box;  
  height: 40px;
}

/* Navigation bar and logo alignment */
header .header-container {
  display: flex;
  align-items: center; /* Aligns logo and nav elements vertically */
  justify-content: space-between; /* Ensures space between logo and nav links */
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #e50914;
}
/* Movie css here */

.scroll-btn {
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 24px;
  padding: 10px 15px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.left-btn {
  left: 0;
}

.right-btn {
  right: 0;
}

.scroll-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.alert {
	padding: 0px 20px 10px 20px;
}

form {
	width: 100%;
    max-width: 600px;
    margin: 0px auto;
    padding: 20px;
    background-color: #1c1c1c; /* Subtle contrast from black */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.form-group {
    width: 100%;
    box-sizing: border-box; /* Makes sure padding is included in width calculation */
}

.form-group a {
	text-decoration: none;
	color: #fff;
	font-size: small;
}

.mail {
    /*width: 100%;  Make sure the container is responsive */
    width: 576px; /* The form will not exceed 600px */
    margin: 0 auto; /* Center the form */
}

  
form div {
    margin-bottom: 20px;
}

form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

form input[type="text"], 
input[type="email"],
input[type="password"],
form select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #2c2c2c;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
}

form input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #e50914; /* Netflix-style red highlight */
}


textarea {
    min-height: 150px; /* Minimum height for the textarea */
    resize: vertical; /* Allow resizing vertically */
}

form button {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    width: 100%;
}

form button:hover {
    background-color: #ff2e2e;
}

#genre-checkboxes {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr 3fr;
    gap: 10px;
}

#genre-checkboxes input[type="checkbox"] {
    width: 16px; /* You can keep it fixed or adjust as needed */
    height: 16px;
    margin: 0;
    vertical-align: middle;
    justify-self: end; /* Aligns the checkbox to the right of its grid cell */
}

#genre-checkboxes label {
    font-size: 14px; /* Set a consistent font size for the labels */
    margin-left: 3px; /* Space between checkbox and label */
    line-height: 16px; /* Ensure vertical alignment with checkbox */
    line-height: 16px; /* Align the label vertically with the checkbox */
}


form input::placeholder {
    color: #888;
}

.matchsub {
    text-align: center !important;
    margin: 20px auto !important;
}

/* AJAX Returned TMDB Thumbnail and info styling */
/* Movie Search Styles */
 .moviecontainer {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            box-sizing: border-box;
        }

        .movie-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 20px;
            box-sizing: border-box;
			width: 100%;
        }

        .movie-row {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 30px;
            position: relative;
            max-width: 100%;
            margin: 0 auto;
            box-sizing: border-box;
        }

        .movie-item {
            position: relative;
            display: inline-block;
            width: calc(20% - 20px);
            max-width: 200px;/* */
			/*flex: 0 0 calc(20% - 20px);  Prevent shrinking below 20% width */
			/*max-width: calc(20% - 20px);  Maintain the same max width */
			/* min-width: 150px; Ensure a minimum width for items */
            margin: 10px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.3s ease;
            cursor: pointer;
        }
		
		.movie-item .movie-item-poster {
			max-height: 300px; /* Set a maximum height for the images */
			width: auto; /* Maintain aspect ratio */
			object-fit: cover; /* Ensure the image fits within the container */
			display: block; /* Prevent inline spacing issues */
		}

        .movie-item:hover:not(.expanded) {
            transform: scale(1.05);
        }

        .movie-item.expanded {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90%;
            max-width: 600px;
            z-index: 1000;
            background: #222;
            border-radius: 11px;
            padding: 3px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
			overflow: visible;
        }
		
		.movie-item.expanded .movieStats {
			display: none;
		}
				
		.movie-item.expanded .content-wrapper {
			overflow: visible; /* Allow content to expand */
			border-radius: 8px; /* Ensure expanded content respects border radius */
		}

        .movie-item.expanded .abbreviated-overview {
            display: none;
        }

        .movie-item.expanded .expanded-details {
            display: block !important;
            position: static;
			border-radius: 10px; 
			overflow: hidden; 
			background-color: #181717; 
        }
		
		
		.expanded-details .poster-container {
			flex: 0 0 300px; /* Fixed width for poster */
			max-width: 300px;
		}
		
		.expanded-details .poster-container img {
			width: 100%;
			height: auto;
			display: block;
		}
		
		.expanded-details .movie-info {
			flex: 1;
			min-width: 0; /* Allows flex item to shrink below its content width */
		}

        .expanded-details {
            display: none;
            background: #181717;
            color: #b6b1b1;
            padding: 5px;
            border-radius: 8px;
        }

        .expanded-details img {
            max-width: 300px;
            margin: 0 auto;
            display: block;
        }
		.expanded-details p {
			padding: 0 10px;
			line-height: 1.3em;
		}
		.expanded-details h3 {
			color: #ffbf00;
			padding: 0 10px;
		}
		
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 999;
            display: none;
        }

        .close-btn {
          position: absolute;
		  top: -28px;
		  right: -2px;
		  background: none;
		  border: none;
		  color: white;
		  font-size: 20px;
		  cursor: pointer;
		  border-radius: 20px;
		  z-index: 1000;
		  padding-bottom: 0px;
		  padding: 0px 5px 5px 5px;
		  line-height: 0.6;
		  text-align: center;
		  margin-bottom: 2px;
		  box-sizing: unset;
		  height: 22px;
		  width: 20px;
        }
		
		.close-btn:hover{
          background-color: rgba(0,0,0,0.3);
		}
		
		.img-wrapper {
			position: relative;
			width: 100%; /* Full modal width */
			height: auto;
			overflow: hidden;
			display: flex;
			justify-content: center; /* Center the image */
			align-items: center;
		}
		
		.img-wrapper .background-img {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%; /* Full width */
			height: 100%; /* Full height of the image wrapper */
			background-size: cover; /* Cover the area */
			background-position: center; /* Center the image */
			filter: brightness(0.6); /* Dim the background */
			z-index: 1;
		    border-top-left-radius: 8px;
		    border-top-right-radius: 8px;
		}
		
		.img-wrapper img {
			position: relative;
			z-index: 2; /* Above the background */
			max-width: 98%; /* Ensure responsiveness */
			height: auto;
		}
	
	.movie-item.expanded .expanded-details img {
	  max-height: 250px;
	}

/* Hide the default image, title, and abbreviated-overview when expanded */
		.movie-item.expanded img,
		.movie-item.expanded h3,
		.movie-item.expanded .abbreviated-overview {
			display: none;
		}
		.movie-item.expanded .expanded-details img,
		.movie-item.expanded .expanded-details h3 {
			display: block; /* Show only the img and title inside expanded-details */
		}
/* End movie css */

.load-more-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background-color: #0056b3;
}

.contact-form {
	margin-top: 70px;
}

.film img{
  height: 60px;
  width: auto;
  position: absolute;
  top: 0;
  margin: 90px 20px;
}

/* Top Hundred ratings */
 .circle-container {
            position: relative;
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
			margin-right: 10px;
        }

        svg {
            /* transform: rotate(-90deg); Rotates the arc to start from 12 o'clock */
        }

        .circle-background {
            fill: none;
            stroke-width: 10; /* Background arc thickness */
        }

        .circle-foreground {
            fill: none;
            stroke: green;
            stroke-width: 10; /* Arc thickness */
            stroke-linecap: round;
            transition: stroke-dashoffset 0.3s ease;
        }

        .percentage-text {
            position: absolute;
            font-size: 12px;
            font-weight: bold;
        }
		.perc {
			font-size: 8px; /* Smaller font size for the % symbol */
			position: relative;
			top: -2px; /* Adjust this value to move the % upwards */
		}
		
		.movieStats {
			display: flex;
			align-items: center; /* Align circle-container and year side by side */
		}

		.movie-year {
			font-size: 12px;  
			font-weight: bold;
			margin-left: auto;
		}
		
		.movie-pop {
			font-size: 12px;  
			font-weight: bold;
			margin-left: 10px;
		}
		.trend-image {
		  width: 20px;
		  height: auto;
		  margin-left: 2px;
		}

		

/* Footer styles */
.site-footer {
    background: transparent; /* Transparent background */
    text-align: center; /* Center content horizontally */
    font-size: 12px; /* Smaller text size */
    color: white; /* White text color */
    padding: 10px 0; /* Vertical spacing */
}

.footer-content {
    max-width: 1200px; /* Constrain footer width */
    margin: 0 auto; /* Center footer on the page */
    display: flex; /* Flex container for groups */
    flex-wrap: wrap; /* Allow items to wrap vertically on smaller screens */
    justify-content: center; /* Center elements horizontally */
    gap: 20px; /* Spacing between groups */
	padding: 0 20px;
}

.footer-group {
    display: flex; /* Each group is a flex container */
    align-items: center; /* Center items vertically within the group */
    gap: 10px; /* Spacing between items within the group */
}

.footer-content a {
    color: white; /* Links match text color */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth hover effect */
}

.footer-content a:hover {
    color: #ccc; /* Light gray on hover */
}

/* Social Footer */
.social-footer {
	flex-basis: 100%; /* Make this group take the full width */
    justify-content: center; /* Center the icons horizontally */
	display: none;
    gap: 10px; /* Space between social media icons */
}

.social-item img {
    width: 24px; /* Uniform size for social icons */
    height: 24px;
    transition: transform 0.3s ease; /* Hover effect */
}

.social-item img:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}

/*
.social-footer {
  display:none;
}*/
	
.social-item {
  padding: 0px 3px;
}

.mobile-dropdown {
	display:none;
}

@media (min-width: 1200px) {
  /* Even larger screens: widescreens */
  .movie-thumbnails img {
    width: 200px;
    height: 300px;
  }
}


/* Responsive adjustments */
@media (max-width: 1200px) {
    .movie-item {
        width: calc(20% - 20px); /* 5 items per row */
    }
}

@media (max-width: 1000px) {
	.social {
		display: none;	
	}
	.social-footer {
		display:block !important;
	}
	/*.logo img {
		height: 40px;
	}
		
	.minht {
	  min-height: calc(100vh - (40px + 30px));
	  position:relative;
	  display: flex;
	  flex-direction: column;
	  top: -20px;
	}*/
	 .detail-container {
        min-height: 650px;
		height: 700px !important;
    }
}

@media (max-width: 992px) {
    .movie-item {
        width: calc(25% - 20px); /* 4 items per row */
    }
}

/* For mobile, hide the main menu and show the mobile icon */
@media (max-width: 800px) {
  .menu-bar {
    display: none; /* Hide the desktop menu */
  }
  .search-icon {
    display: block; /* Ensure the search icon is visible */
    position: fixed; /* Position it for better accessibility */
    top: 10px; /* Adjust as needed */
    right: 50px; /* Adjust as needed */
	padding: 0px;
    z-index: 1001; /* Keep it above other elements */
  }

  .search-icon img {
    width: 24px; /* Adjust size for smaller screens */
    height: auto;
  }
  
  .user-initial {
	  position: relative;
	  right: 100px;
  }

  .mobile-menu-icon {
	position: absolute;
	right: 20px;
	top: 10px;
    display: block;
    cursor: pointer;
  }

  .mobile-dropdown {
    display: flex; /* Hide the dropdown by default */
    flex-direction: column;
    gap: 10px;
    background: #201c1c;
    position: absolute;
    top: 50px; /* Adjust to header height */
    left: 0;
    right: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px 10px 50px 10px;
    z-index: 10;
  }
/* Mobile dropdown menu styles */
  .mobile-dropdown .menu-item {
    padding: 10px 0;
    /*border-bottom: 1px solid #ccc;*/
	color: #fff;
  }

  .mobile-dropdown .menu-item:last-child {
    border-bottom: none;
  }
  
  /*.footer-content {
        flex-direction: column;
        align-items: center;
    }*/

    .social-footer {
        margin-top: 10px; /* Add spacing above social icons */
    }
	
/* Movie Content */
     .detail-container {
        min-height: 650px;
        overflow: visible;
		height: 1200px !important;
    }

    .detail-content-wrapper {
        flex-direction: column;
        height: auto;
        position: relative;
        overflow: visible;  
		padding: 0px 30px 0px 30px !important;
    }

    /* Modify your existing backdrop wrapper for mobile */
    .detail-backdrop-wrapper {
        /* Only show behind the content area */
        top: auto;
        bottom: 0;
        height: 60%; /* Adjust this value to match your content height */
    }

    .detail-poster {
        margin: 0 !important;
        padding: 20px;
        z-index: 2;
        /* This ensures poster sits against container background */
        position: relative;
        background-color: inherit;
    }

    .detail-movie-content {
        position: relative;
        width: 100%;
        padding: 20px;
        margin-top: 20px;
        z-index: 1;
    }
	 .detail-movie-content {
        padding: 20px 0px 20px 0px !important;
		box-sizing:content-box;
    }
	 .detail-castdirector {
        padding: 20px 0px 20px 0px !important;
		box-sizing:content-box;
    }
	.detail-trend-item {
        padding: 20px 0px 20px 0px !important;
		box-sizing:content-box;
	}
}

/* For larger screens (800px and up), the mobile dropdown should not be displayed */
@media (min-width: 801px) {
  .mobile-menu-icon {
    display: none; /* Hide the mobile icon */
  }

  .mobile-dropdown {
    display: none !important; /* Ensure the mobile dropdown is hidden on large screens */
  }
}

@media (max-width: 768px) {
    .movie-item {
        width: calc(33.333% - 20px); /* 3 items per row */
    }
}

@media (min-width: 768px) {
  /* Larger screen: tablets and desktops */
  .movie-thumbnails img {
    width: 150px;
    height: 220px;
  }
}

@media (max-width: 576px) {
    .movie-item {
        width: calc(50% - 20px); /* 2 items per row */
    }
	.mail {
		width: 100%;  /* Let it take 100% of the screen width on small screens */
		max-width: 100%;  /* Remove the max-width limitation */
	}
}
