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: #fff;  /*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: #000; /* Text color for contrast */
 /* height: 100vh;*/
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-height, 48px); /* Kept in sync with the header's real measured height (see header.php's inline script) - the 48px here only matters for the instant before that script runs */
  box-sizing: border-box;
  padding-bottom: 40px; /* Reserve space for footer */
}

.user-initial {
    position: static !important;
    margin: 5px 10px 0px 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
}

.user-initial:hover {
    background-color: transparent;
    color: #1d4ee1;
 }


.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;
	font-size: 12px;
}

.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;
}
.browse-release-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
    margin-bottom: 6px;
    color: #ffbf00;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}
.browse-release-icon {
    color: #ffbf00;
    flex-shrink: 0;
    display: block;
	transform: translateY(-1px);
}

.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 Dropdown Text Overlapping/Wrapping Fixes */
.search-result-info, 
.search-item-info, 
.search-item-details, 
.search-details {
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.search-result-title, 
.search-item-title,
.search-title {
  white-space: normal !important;
  line-height: 1.3 !important;
  margin-bottom: 4px !important;
  font-weight: bold !important;
  color: #007bff !important;
}

.search-result-desc, 
.search-item-desc, 
.search-result-meta, 
.search-item-meta, 
.search-result-subtitle,
.search-item-info p {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.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;
}

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

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

/* Container for search input and button */
.search-input-container {
  display: flex;
  align-items: center;
  position: relative;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
}

.search-input {
  flex: 1;
  height: 100%;
  padding: 0 10px;
  border: none;
  outline: none;
  color: #333;
  font-size: 13px;
}

.search-button {
  height: 100%;
  padding: 0 10px;
  background-color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

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

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

.advanced {
  display: flex;
  align-items: center;
  padding: 0 8px;
  cursor: pointer;
  color: #666;
  height: 100%;
  border-left: 1px solid #eee;
}

.advanced:hover {
  color: #007bff;
}

/* 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-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 */
html, body {
    height: 100%; /* Ensure the viewport is filled */
    min-height: 100vh;
    min-height: 100dvh; /* dvh accounts for mobile browser chrome resizing the real viewport - vh alone can be taller than what's actually visible on some phones */
    margin: 0; /* Remove default margins */
    display: flex;
    flex-direction: column;
}

.minht {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}
footer {
    flex-shrink: 0;
}



header {
  position: fixed; /* Default positioning */
  overflow: visible;  /* Ensure no clipping */
  background-color: #ffbf00;
  padding: 4px 0;
  top: 0;
  width: 100%;
  z-index:10;
}

.page-container {
    flex: 1; /* Makes content expand to push footer down */
    display: flex;
    flex-direction: column;
}
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.logo img {
    height: 34px;
    width: auto;  
    display: block;
}

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

.menu-item {
  position: relative;
  text-decoration: none;
  color: black;
  /*font-weight: bold;*/
  padding: 5px 10px 5px 10px;
  transition: color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  font-size: 10px;
  text-transform:uppercase;
}

.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:hover:not(.sign):not(.search-icon) {
    text-shadow: 0 0 0.4px currentColor, 0 0 0.4px currentColor;
}


/* Content Area */
.content {
  flex: 1;
  gap: 20px; /* Adds spacing between items */
  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;
  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: 1400px;
  margin: 0 auto;
  padding: 0 20px;  
  box-sizing: border-box;  
  height: auto;
  min-height: 28px;
}

/* Navigation bar and logo alignment */
header .header-container {
  display: flex;
  align-items: center; /* Aligns logo and nav elements vertically */
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #ffbf00;
  font-family: 'Big Shoulders Display', Impact, sans-serif;
}

.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: #fff; /* 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: #5c5c5c;
	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;
	color: #5c5c5c;
}

form input[type="text"], 
input[type="email"],
input[type="password"],
form select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #c7c5c5;
    border-radius: 4px;
    color: #555;
    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: #ffbf00;
    color: #000;
    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;/* */
            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;
}
/* Match Score Badge - sits next to #user-menu in the header */
.match-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.match-score-badge:hover {
    transform: scale(1.08);
    transition: transform 0.15s ease;
}
 
 
 
 /* "More like this" - similar movies panel, shared across browse cards */
.browse-more-like {
    display: block;
    text-align: right;
    margin-top: 6px;
    color: #999;
    font-size: 10px;
    cursor: pointer;
    text-decoration: underline;
}
.browse-more-like:hover {
    color: #fff;
}
.similar-row-wrapper {
    position: relative;
    margin: 10px 0 20px;
    width: 100%;
}
.similar-row-pointer {
    position: absolute;
    top: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #2a2410;
}
.similar-row-box {
    background: #2a2410;
    border: 2px solid #ffbf00;
    border-radius: 10px;
    padding: 15px;
}
.similar-mode-select {
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #ffbf00;
    font-size: 12px;
}
.similar-mode-label {
    margin-left: 10px;
    color: #ffbf00;
    font-size: 12px;
    font-weight: bold;
}
.similar-row-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 5px 0 14px 0;
    scrollbar-width: thin;
    scrollbar-color: #ffbf00 transparent;
}
.similar-row-thumbs::-webkit-scrollbar { height: 8px; }
.similar-row-thumbs::-webkit-scrollbar-track { background: transparent; }
.similar-row-thumbs::-webkit-scrollbar-thumb { background: #ffbf00; border-radius: 999px; }
.similar-row-thumbs::-webkit-scrollbar-thumb:hover { background: #ffd54f; }
.similar-thumb-link {
    flex: 0 0 auto;
    width: 120px;
    text-decoration: none;
}
.similar-thumb-link img {
    width: 120px;
    height: 180px;
    border-radius: 6px;
    display: block;
}
.similar-thumb-title {
    font-size: 11px;
    color: #fff;
    margin-top: 8px;
    line-height: 1.3;
}
.browse-movie-card.origin-active .movie-thumbnail {
    outline: 3px solid #ffbf00;
    outline-offset: 2px;
}
 
.similar-actor-link {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    color: #ffbf00;
    font-size: 12px;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    border-radius: 4px;
}
.similar-actor-link:hover {
    background: rgba(255, 191, 0, 0.15);
}
.similar-actor-link.active {
    background: #ffbf00;
    color: #1a1a1a;
    text-decoration: none;
}
 

.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-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;
	}
	 .detail-container {
        min-height: 650px;
        height: auto !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) {
  header {
    padding-top: 3px;
    padding-bottom: 3px;
  }

  header .header-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    height: auto !important;
    min-height: 38px !important;
  }

  .logo img {
    height: 30px !important;
    width: auto !important;
  }

  .menu-bar {
    display: none !important; /* Hide the desktop menu */
  }

  /* Search, Profile, and Mobile Menu Icons - cleanly grouped in a row without overlapping offsets */
  .search-icon {
    display: inline-flex !important; 
    position: static !important; 
    padding: 0 !important;
    margin: 0 4px !important;
    z-index: auto !important; 
    align-items: center !important;
  }

  .search-icon img {
    width: 20px !important; 
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .user-initial {
    position: static !important;
    margin: 5px 4px 0px 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
  }

  .mobile-menu-icon {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    /*margin: 0 12px 0 4px !important; */
	/*margin-right: 12px !important;  12px clear of the right edge */
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;         /* never squeezed by the row */
  }

  /* Force Webkit/Safari to render SVG icon sizes explicitly */
  .mobile-menu-icon svg,
  .mobile-menu-icon img {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
  }
.match-score-icon {
    color: #000 !important;
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    flex-shrink: 0 !important;
}
#match-score-number {
    color: #000;
    font-weight: bold;
    font-size: 14px;
    margin-top: 6px;
}

  .user-account-icon {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
  }

  /* Mobile menu dropdown - positioned relative to fixed header */
  .mobile-dropdown {
    display: flex; /* Hide/show toggled by JS classes */
    flex-direction: column;
    gap: 10px;
    background: #201c1c;
    position: absolute;
    top: 44px; /* Perfectly flush with compressed mobile header height */
    left: 0;
    right: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    padding: 10px 10px 30px 10px;
    z-index: 10;
  }

  .mobile-dropdown .menu-item {
    padding: 10px 0;
	color: #fff;
  }

  .mobile-dropdown .menu-item:last-child {
    border-bottom: none;
  }

  .social-footer {
        margin-top: 10px; /* Add spacing above social icons */
  }
	
  /* Movie Content */
  .detail-container {
        min-height: 650px;
        overflow: visible;
        height: auto !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 {
        top: auto;
        bottom: 0;
        height: 60%; /* Adjust this value to match your content height */
  }

  .detail-poster {
        margin: 0 !important;
        padding: 20px;
        z-index: 2;
        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 !important; /* 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 */
	}
}