/* Home page styles */
.hero-section {
	background: transparent;
	border-radius: 0;
	padding: 80px 20px;
}

.hero-section .hero-content {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 16px;
	color: rgb(253, 253, 253);
}

.hero-section .btn.btn-light {
	background: #e50914;
	color: #ffffff;
	border: none;
}

.hero-section .btn.btn-light:hover {
	background: #c20812;
	color: #ffffff;
}

.trending-section {
	margin: 10px 20px 50px 20px;
}

.trending-title {
	color: #ffffff;
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 18px;
}

.trending-controls {
	display: flex;
	align-items: center;
	gap: 12px;
}

.trending-arrow {
	width: 44px;
	height: 80px;
	border-radius: 12px;
	border: none;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font-size: 26px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.trending-arrow:hover {
	background: rgba(255, 255, 255, 0.18);
	transform: translateY(-2px);
}

.trending-row {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-snap-type: x mandatory;
	flex: 1;
	scroll-behavior: smooth;
}

.trending-row::-webkit-scrollbar {
	height: 8px;
}

.trending-row::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 999px;
}

.trending-item {
	position: relative;
	flex: 0 0 auto;
	width: 180px;
	scroll-snap-align: start;
	cursor: pointer;
}

.trending-poster {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 18px;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
	cursor: pointer;
}

.trending-rank {
	position: absolute;
	left: -12px;
	bottom: 6px;
	font-size: 64px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
	-webkit-text-stroke: 2px rgba(0, 0, 0, 0.7);
}

.trending-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2000;
}

.trending-modal.is-open {
	display: flex;
}

.trending-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}

.trending-modal__card {
	position: relative;
	background: #1a1a1a;
	color: #ffffff;
	width: min(840px, 92vw);
	max-height: 85vh;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
	z-index: 1;
	display: flex;
	flex-direction: column;
	--poster-url: none;
}

.trending-modal__card::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--poster-url);
	background-size: cover;
	background-position: center;
	filter: blur(22px);
	transform: scale(1.08);
	opacity: 0.8;
	z-index: 0;
}

.trending-modal__card>* {
	position: relative;
	z-index: 1;
}

.trending-modal__media {
	background: #111;
	position: relative;
	flex: 0 0 auto;
}

.trending-modal__poster {
	width: 100%;
	aspect-ratio: 3 / 4;
	height: auto;
	max-height: 40vh;
	object-fit: contain;
	object-position: center;
	display: block;
}

.trending-modal__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 24px 20px;
	min-height: 120px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.9) 100%);
	z-index: 2;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.trending-modal__content {
	padding: 18px 20px 24px;
	overflow-y: auto;
	background: #1a1a1a;
	flex: 1 1 auto;
}

.trending-modal__title {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: 0.02em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.trending-modal__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.trending-modal__tag {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 12px;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.trending-modal__desc {
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 20px;
}

/* Mobile-like CTA styling */
.trending-modal .btn.btn-primary {
	background: #e50914;
	border: none;
}

.trending-modal .btn.btn-primary:hover {
	background: #c20812;
}

.trending-modal__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 8px;
	font-weight: 700;
	box-shadow: 0 6px 18px rgba(229, 9, 20, 0.35);
}

.trending-modal__cta-arrow {
	font-size: 20px;
	line-height: 1;
}

.trending-modal__close {
	position: absolute;
	right: 14px;
	top: 14px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.7);
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	z-index: 10;
	cursor: pointer;
	transition: background 0.2s;
}

.trending-modal__close:hover {
	background: rgba(0, 0, 0, 0.9);
}

@media (min-width: 577px) {
	.trending-modal__media {
		aspect-ratio: 3 / 4;
		width: 100%;
		max-height: 40vh;
	}

	.trending-modal__poster {
		height: 100%;
		max-height: 40vh;
	}
}

@media (max-width: 576px) {
	.trending-modal__card {
		width: min(92vw, 420px);
	}

	.trending-modal__poster {
		max-height: 45vh;
	}

	.trending-modal__title {
		font-size: 20px;
	}

	.trending-modal__overlay {
		padding: 16px;
	}
}

@media (max-width: 576px) {
	.trending-controls {
		gap: 8px;
	}

	.trending-arrow {
		width: 34px;
		height: 70px;
		font-size: 22px;
	}

	.trending-row {
		gap: 12px;
	}

	.trending-item {
		width: calc((100vw - 40px - 34px - 34px - 12px) / 2);
	}
}

.movie-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	max-width: 220px;
	margin: 0 auto;
}

.movie-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.movie-poster {
	aspect-ratio: 2 / 3;
	overflow: hidden;
}

.movie-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.stars {
	color: #ffd700;
}

.price-tag {
	color: var(--accent-color);
	font-weight: 700;
}

/* Home page styles (hero, search, movies) */
* {
	box-sizing: border-box;
}


.hero {
	background: linear-gradient(rgba(1, 6, 25, 0.55), rgba(1, 6, 25, 0.85)), url('../images/bg.png');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-blend-mode: overlay;
	color: white;
	padding: 80px 20px;
	text-align: center;
	border-radius: 15px;
	margin-bottom: 50px;
	margin-left: 0;
	margin-right: 0;
	width: 100%;
}

.hero h1 {
	font-size: 48px;
	margin: 0 0 20px 0;
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
	font-size: 20px;
	margin: 0 0 30px 0;
	opacity: 0.95;
}

.btn-primary {
	background: #ff6b6b;
	color: white;
	padding: 12px 28px;
	border-radius: 8px;
	text-decoration: none;
	display: inline-block;
}

.search-section {
	background: white;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	margin: 0 20px 40px 20px;
}

.search-section h3 {
	margin: 0 0 20px 0;
	color: #333;
	font-size: 18px;
}

.search-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
}

.form-group label {
	font-weight: 600;
	margin-bottom: 6px;
	display: block;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid #ddd;
	box-sizing: border-box;
}

.search-btn {
	grid-column: 1 / -1;
	background: #667eea;
	color: white;
	padding: 10px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
}

#movies {
	margin: 0 20px;
	text-align: center;
}

#movies h2 {
	color: white;
	margin-bottom: 30px;
	font-size: 32px;
	background: #e50914;
	display: inline-block;
	padding: 8px 16px;
	border-radius: 10px;

}

.movies-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 30px;
}

.movie-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	max-width: 260px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.movie-poster {
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: linear-gradient(135deg, #667eea, #764ba2);
}

.movie-poster img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

.movie-info {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.movie-title {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	min-height: calc(1.2em * 2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.movie-genre {
	font-size: 13px;
	color: #666;
}

.movie-rating {
	font-size: 13px;
}

.movie-duration {
	font-size: 13px;
	color: #666;
}

.movie-price {
	color: #ff6b6b;
	font-weight: 700;
	font-size: 14px;
}

.btn-book {
	display: block;
	width: 100%;
	background: #667eea;
	color: white;
	padding: 10px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	margin-top: auto;
}

.btn-book:hover {
	background: #5568d3;
}

/* About & Team section on landing */
#about {
	margin: 40px 20px 0 20px;
}

.team-section {
	margin-top: 24px;
	background: white;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.team-section h3 {
	margin-bottom: 10px;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin-top: 12px;
}

.team-card {
	text-align: center;
}

.team-photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 8px auto;
	background: #e2e8f0;
}

.team-photo img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	object-position: center;
}

.team-card h4 {
	margin: 0 0 4px 0;
	font-size: 15px;
}

.team-role {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

/* Tablet */
@media (max-width: 768px) {
	.hero {
		padding: 50px 15px;
	}

	.hero h1 {
		font-size: 32px;
		margin-bottom: 15px;
	}

	.hero p {
		font-size: 16px;
		margin-bottom: 20px;
	}

	.search-section {
		margin: 0 15px 30px 15px;
		padding: 20px;
	}

	.search-form {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	#movies {
		margin: 0 15px;
	}

	#movies h2 {
		font-size: 28px;
		margin-bottom: 20px;
	}

	.movies-grid {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
		gap: 16px;
		margin-top: 20px;
	}

	.movie-title {
		font-size: 13px;
	}

	.movie-genre,
	.movie-duration {
		font-size: 11px;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.hero {
		padding: 35px 10px;
		margin-bottom: 20px;
		border-radius: 8px;
	}

	.hero h1 {
		font-size: 20px;
		margin-bottom: 8px;
	}

	.hero p {
		font-size: 12px;
		margin-bottom: 10px;
	}

	.search-section {
		margin: 0 8px 20px 8px;
		padding: 12px;
		border-radius: 8px;
	}

	.search-section h3 {
		font-size: 14px;
		margin: 0 0 10px 0;
	}

	.search-form {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.form-group label {
		font-size: 12px;
		margin-bottom: 3px;
	}

	.form-group input,
	.form-group select {
		padding: 6px;
		font-size: 13px;
	}

	.search-btn {
		padding: 6px;
		font-size: 12px;
	}

	#movies {
		margin: 0 8px;
	}

	#movies h2 {
		font-size: 20px;
		margin: 10px 0;
	}

	.movies-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin-top: 10px;
	}

	/* Team section: 2 per row on mobile, last card centered */
	.team-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.team-grid>.team-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		max-width: 220px;
		margin: 0 auto;
	}

	.movie-info {
		padding: 6px;
	}

	.movie-title {
		font-size: 10px;
		margin-bottom: 2px;
		font-weight: 700;
	}

	.movie-genre {
		font-size: 8px;
		margin-bottom: 2px;
	}

	.movie-rating {
		font-size: 9px;
		margin-bottom: 2px;
	}

	.movie-duration {
		font-size: 8px;
		margin-bottom: 2px;
	}

	.movie-price {
		font-size: 10px;
		margin-top: 3px;
	}

	.btn-book {
		padding: 5px;
		font-size: 10px;
	}
}
