:root {
	--bg-page: #000000;
	--bg-card: #1a1a1a;
	--accent: #7B3FF2;
	--accent-soft: #5a2db8;
	--text-main: #ffffff;
	--text-muted: #999999;
	--border-soft: #333333;
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	background-color: var(--bg-page);
	color: var(--text-main);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hideAll {
	display: none !important;
}

.pointer {
	cursor: pointer;
}

/* Header */
.header_background {
	background: #000000;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--border-soft);
}

.logo-img {
	width: 120px;
	height: auto;
	cursor: pointer;
	display: block;
}

.box {
	min-height: 3rem;
	display: flex;
	align-items: center;
	padding: 0 1rem;
}

.gray4 {
	background: transparent;
}

/* Search Container */
.search-container {
	position: relative;
	width: 100%;
}

#search {
	width: 100%;
	background-color: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: 50px;
	padding: 0.75rem 1.5rem;
	color: var(--text-main);
	font-size: 0.95rem;
}

#search:focus {
	outline: none;
	border-color: var(--accent);
}

#search::placeholder {
	color: #666;
}

.search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: 8px;
	max-height: 400px;
	overflow-y: auto;
	z-index: 1000;
	margin-top: 0.5rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-results li {
	list-style: none;
	display: flex;
	align-items: center;
	padding: 0.75rem;
	border-bottom: 1px solid var(--border-soft);
	cursor: pointer;
	transition: background 0.2s;
}

.search-results li:last-child {
	border-bottom: none;
}

.search-results li:hover {
	background: rgba(123, 63, 242, 0.2);
}

.search-results li img {
	width: 50px;
	height: 75px;
	object-fit: cover;
	border-radius: 4px;
	margin-right: 1rem;
}

.search-results li > div:last-child {
	flex: 1;
}

/* Main Content */
main.grid-container {
	padding-top: 2rem;
	padding-bottom: 3rem;
	max-width: 1400px;
}

.box2 {
	background: transparent;
	padding: 2rem 0;
}

.home-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	max-width: 100%;
}

.callout {
	background: transparent;
	border: none;
	margin: 0;
	padding: 0;
}

.height-1 {
	min-height: auto;
}

.movie-poster {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: var(--bg-card);
}

.movie-poster img {
	width: 100%;
	height: auto;
	aspect-ratio: 2/3;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.click-movies:hover .movie-poster img,
.click-people:hover .movie-poster img {
	transform: scale(1.05);
}

.movie-circle {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.8);
	color: #ffd700;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 0.9rem;
}

.callout h4 {
	margin: 0.75rem 0 0.25rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-main);
}

.callout h5 {
	margin: 0;
	font-size: 0.85rem;
	color: var(--text-muted);
	font-style: italic;
}

.white-text {
	color: white;
}

/* Movie Detail Page */
.movies-show .grid-x {
	margin-bottom: 2rem;
}

.movie-image,
.people-image {
	width: 100%;
	border-radius: 8px;
	display: block;
}

.movie-name,
.people-name {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.movie-description,
.people-biography {
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
	color: var(--text-main);
}

.movie-label {
	font-weight: 700;
	color: var(--text-main);
}

.movie-youtube {
	width: 100%;
	aspect-ratio: 16/9;
	border-radius: 8px;
	margin-top: 1rem;
	border: none;
}

/* Slick Sliders */
.movie-actors,
.movie-related-movies,
.movie-screen-shot,
.people-movies,
.people-images {
	margin: 2rem 0;
}

.slick-slide {
	padding: 0 10px;
}

.slick-slide .movie-poster img {
	width: 100%;
	aspect-ratio: 3/4;
	object-fit: cover;
}

.slick-prev,
.slick-next {
	z-index: 10;
}

.slick-prev {
	left: -35px;
}

.slick-next {
	right: -35px;
}

.slick-prev:before,
.slick-next:before {
	color: var(--accent);
	font-size: 30px;
}

.slick-dots {
	bottom: -40px;
}

.slick-dots li button:before {
	color: var(--accent);
	font-size: 10px;
}

.slick-dots li.slick-active button:before {
	color: var(--accent);
	opacity: 1;
}

/* People Page */
.people-show h1 {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 1rem;
}

.people-show .movie-poster img {
	aspect-ratio: 3/4;
}

/* Footer */
.footer_background {
	background: #000;
	border-top: 1px solid var(--border-soft);
	padding: 2rem 0;
	margin-top: 3rem;
}

.footer_background .box {
	color: var(--text-muted);
	font-size: 0.85rem;
	justify-content: center;
}



/* Loading State */
.loading {
	text-align: center;
	padding: 3rem;
	color: var(--text-muted);
	font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
	.home-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.slick-prev {
		left: -25px;
	}

	.slick-next {
		right: -25px;
	}
}

@media (max-width: 768px) {
	.home-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.movie-name,
	.people-name {
		font-size: 1.8rem;
	}

	.logo-img {
		width: 80px;
	}

	.header_background {
		padding: 1rem 0;
	}

	.movie-youtube {
		height: 250px;
	}

	.slick-prev {
		left: 0;
	}

	.slick-next {
		right: 0;
	}

	.slick-prev:before,
	.slick-next:before {
		font-size: 25px;
	}
}

@media (max-width: 640px) {
	.home-container {
		grid-template-columns: repeat(2, 1fr);
	}

	main.grid-container {
		padding-top: 1rem;
		padding-bottom: 2rem;
	}

	.movie-name,
	.people-name {
		font-size: 1.5rem;
	}

	.movie-description,
	.people-biography {
		font-size: 0.9rem;
	}

	.search-results li img {
		width: 40px;
		height: 60px;
	}
}

/* Transitions and Animations */
.click-movies,
.click-people,
.click-home {
	transition: all 0.3s ease;
}

.callout:hover {
	opacity: 0.8;
}

/* Utility Classes */
.text-center {
	text-align: center;
}

.mt-1 {
	margin-top: 1rem;
}

.mt-2 {
	margin-top: 2rem;
}

.mb-1 {
	margin-bottom: 1rem;
}

.mb-2 {
	margin-bottom: 2rem;
}