/* PAGE WRAPPER */

body {
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: #0d0d0d url("/images/bg.png") no-repeat center center fixed;
	background-size: cover;
	color: #eee;
}

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-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;
	position: left;
}

.movie-wrap {
	max-width: 1200px;
	margin: auto;
	padding: 10px;
	margin-top: 10px;
}

.hightop {
	max-width: auto;
	margin: auto;
	padding: 10px;
	margin-top: 10px;
}

.back {
	max-width: auto;
	margin: auto;
	padding: 20px;
	color: green;
	text-decoration: none;
	font-weight: bold;
}


/* TOP LAYOUT */

.top-section {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 30px;
	margin-bottom: 5px;
	max-height: 700px;
	overflow: visible;
}

.tophigh {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 30px;
	margin-bottom: 40px;
}


/* INFO CARD */

.info-card {
	background: #1c1c1c;
	/* darker gray-black for contrast */
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.up {
	text-align: left;
}

.poster {
	width: 100%;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.info-card h1 {
	font-size: 20px;
	margin: 10px 0;
	color: #fff;
}

.meta {
	color: #aaa;
	margin: 5px 0;
}

.download {
	display: block;
	margin-top: 5px;
	padding: 5px;
	background: #00e676;
	color: #000;
	text-align: center;
	border-radius: 5px;
	text-decoration: none;
	font-weight: italic;
	transition: 0.3s;
}

.download:hover {
	background: #00c853;
}


.movie-player {
	background: #111;
	/* match trailer */
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.movie-player h2 {
	color: #fff;
	margin: 1px;
}

.movie-player p {
	color: #fff;
	margin: 1px;
}

.movie-player {
	background: #0f0f0f;
	padding: 10px;
	border-radius: 12px;
	color: #fff;
}

.movie-player .note {
	color: #aaa;
	font-size: 14px;
	margin-bottom: 12px;
}


/* BLUE AREA */

.watch-section {
	display: flex;
	justify-content: center;
	/* CENTER horizontally */
	align-items: center;
	padding: 30px 0;
}


/* CARD */

.watch-card {
	position: relative;
	width: 70%;
	/* horizontal look */
	max-width: 700px;
	height: 400px;
	/* FORCE reduced height */
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}


/* IMAGE — force horizontal stretch */

.watch-card img {
	width: 100%;
	height: 100%;
	object-fit: fill;
	/* ⚠ stretches vertical → horizontal */
	display: block;
}


/* PLAY OVERLAY — ON IMAGE */

.play-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: bold;
	letter-spacing: 3px;
	opacity: 0;
	transition: 0.3s ease;
}


/* HOVER */

.watch-card:hover .play-overlay {
	opacity: 1;
	cursor: pointer;

}

.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;
}

@media (max-width: 768px) {
	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 20px;
	}

	.footer-right {
		text-align: center;
	}
}


.trailer-box {
	margin-top: 10px;
	background: #111;
	padding: 8px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	/* stack video and description */
	max-width: 100%;
}

.trailer-box .ratio {
	width: 100%;
	position: relative;
	padding-bottom: 45%;
	/* 16:9 aspect ratio */
	overflow: hidden;
	border-radius: 6px;
	max-height: 500px;
}

.trailer-box .ratio iframe {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	border: none;
	overflow: hidden;
}

.movie-description {
	margin-top: 10px;
	color: #eee;
	width: 100%;
	margin-bottom: 1px;
}

.movie-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 6px;
}

.movie-title span {
	color: #ff4444;
}

.movie-text {
	font-size: 14px;
	line-height: 1.6;
	color: #ddd;
}


/* Optional: keep description readable on very wide screens */

@media (min-width: 1200px) {
	.movie-description {
		max-width: 900px;
		/* stops it from stretching too much */
	}
}


/* =========================================
   MOBILE RESPONSIVE FIX (Add to bottom)
   ========================================= */

@media (max-width: 900px) {

	/* 1. Stop forcing side-by-side. Stack them instead. */
	.top-section {
		display: flex;
		flex-direction: column;
		/* Stacks Poster on top, Trailer below */
		max-height: none;
		/* Remove the height limit so text isn't cut off */
		overflow: visible;
		/* Allow scrolling */
	}

	/* 2. Center the Poster/Info Card */
	.info-card {
		width: 100%;
		max-width: 100%;
		/* Ensure it doesn't overflow */
		box-sizing: border-box;
		/* Includes padding in width calculation */
		margin-bottom: 20px;
		/* Adds space between Poster and Trailer */
	}

	/* Optional: Center the poster image itself if you want */
	.info-card img.poster {
		max-width: 300px;
		/* Keep poster from getting too huge on tablets */
		display: block;
		margin: 0 auto;
		/* Centers the image */
	}

	/* 3. Fix the Trailer & Synopsis Section */
	.trailer-box {
		width: 100%;
		/* Force full width */
		max-width: 100%;
		padding: 10px;
		box-sizing: border-box;
		margin-top: 0;
	}

	/* 4. Fix YouTube Aspect Ratio for Mobile (Standard 16:9) */
	.trailer-box .ratio {
		padding-bottom: 56.25%;
		/* 16:9 Ratio ensures video isn't cut off */
		height: 0;
	}

	/* 5. Ensure Text is readable */
	.movie-description {
		font-size: 15px;
		/* Slightly larger text for mobile readability */
		line-height: 1.5;
		white-space: normal;
		/* Forces text to wrap normally */
	}
}