/* BASE STYLES */

body {
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: #0d0d0d url("/images/bg.webp") no-repeat center center fixed;
	background-size: cover;
	color: #eee;
}

h1 {
	text-align: center;
	font-size: 20px;
	color: #00e676;
}

header {
	text-align: center;
	padding: 20px;
	font-size: 28px;
	font-weight: bold;
	background: #111;
	color: #00e676;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.movie-wrap {
	max-width: 1400px;
	margin: auto;
	padding: 10px;
	margin-top: 10px;
}

.grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 60px;
	margin: 0 30px;
	padding: 30px 30px;
}




/* MOVIE CARD */

.movie-card {
	background: #2c2c2c;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
	cursor: pointer;
}

.movie-card:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgb(0, 0, 0);
}

.movie-card img {
	width: 100%;
	display: block;
	border-bottom: 1px solid #333;
	border-radius: 6px 6px 0 0;
}

.movie-card .info {
	padding: 10px;
	text-align: center;
}

.movie-card .info h3 {
	margin: 5px 0;
	font-size: 16px;
	color: #fff;
}

.movie-card .info p {
	margin: 2px 0;
	font-size: 14px;
	color: #aaa;
}




/* SEARCH BAR */

.search-container {
	display: flex;
	justify-content: center;
	padding: auto;
	margin: auto;

}

.search-container input {
	padding: 8px 12px;
	border-radius: 5px;
	border: none;
	width: auto;
	max-width: 300px;
	font-size: 16px;
}

.search-container button {
	padding: 8px 16px;
	margin-left: 20px;
	border: none;
	border-radius: 5px;
	background: #00e676;
	color: #000;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s;
}

.search-container button:hover {
	background: #00c853;
}

.movie-header img {
	width: 40%;
	max-height: 70px;
	/* Adjust height for 24:6 ratio */
	object-fit: cover;
	display: block;
	border-top: 8px;
}

.pagination-btn {
	padding: 8px 14px;
	margin: 5px;
	background: #00e676;
	color: #000;
	border: none;
	border-radius: 5px;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s;
}

.pagination-btn:hover {
	background: #00c853;
}

.pagination-btn.active {
	background: #00c853;
	color: #fff;
	font-weight: bold;
}


/* Keep previous grid and card styles intact */


/* HEADER SECTION */

.movie-header-section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	background: #111;
	color: #fff;
	flex-wrap: wrap;
	gap: 5px;
	border-radius: 2px;
}

.header-left img {
	width: 100%;
	max-width: 600px;
	/* adjusts banner size */
	border-radius: 8px;
}

.header-right {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.header-right label {
	margin-bottom: 5px;
	font-weight: bold;
	color: #00e676;
}

.header-right select {
	padding: 8px 12px;
	border-radius: 5px;
	border: none;
	font-size: 16px;
	background: #1c1c1c;
	color: #eee;
}


/* Responsive for mobile */



.site-footer {
	background: #0d0d0d;
	border-top: 1px solid #1f1f1f;
	margin-top: 80px;
	padding: 30px 40px;
	color: #aaa;
	font-family: Arial, sans-serif;
}

.footer-content {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}

.footer-left h3 {
	color: #fff;
	margin-bottom: 6px;
}

.footer-left p {
	font-size: 14px;
	color: #888;
}

.footer-center {
	display: flex;
	gap: 20px;
}

.footer-center a {
	color: #aaa;
	text-decoration: none;
	font-size: 14px;
}

.footer-center a:hover {
	color: #fff;
}

.footer-right {
	text-align: right;
	font-size: 13px;
	color: #777;
}


.request-section {
	max-width: 500px;
	margin: 40px auto;
	padding: 25px;
	background: #111;
	border-radius: 8px;
	color: #fff;
}

.request-section h2 {
	text-align: center;
	margin-bottom: 15px;
}

#movieRequestForm input,
#movieRequestForm textarea {
	width: 99%;
	padding-top: 10px;
	padding-bottom: 10px;
	margin-bottom: 12px;
	border-radius: 4px;
	border: none;
}

#movieRequestForm button {
	width: 100%;
	padding: 12px;
	background: #ff4444;
	color: white;
	border: none;
	cursor: pointer;
	font-weight: bold;
}

#movieRequestForm button:hover {
	background: #ff2222;
}

/* 1. Large Tablets / Small Laptops (Up to 1200px) */
@media screen and (max-width: 1200px) {
	.grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* 2. Tablets (Up to 1024px) */
/* Note: If 1200px and 1024px both want 3 columns, you can combine these */
@media screen and (max-width: 1024px) {
	.grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* 3. Small Tablets / Landscape Phones (Up to 900px) */
@media screen and (max-width: 900px) {
	.movie-header-section {
		flex-direction: column;
		align-items: flex-start;
	}

	.header-left img {
		max-width: 100%;
	}

	.header-right {
		width: 100%;
	}

	.grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* 4. Phablets (Up to 768px) */
@media (max-width: 768px) {
	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 20px;
	}

	.footer-right {
		text-align: center;
	}
}

/* 5. Small Mobile (Up to 600px) */
@media screen and (max-width: 600px) {
	.grid {
		grid-template-columns: 1fr;
		/* 1 per row for small screens */
	}

	header {
		font-size: 24px;
	}
}