@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,400;1,200;1,700&family=Rubik+80s+Fade&display=swap");

* {
	box-sizing: border-box;
}

html {
	height: 100%;
}

:root {
	--primary-color: #000000;
	--secondary-color: #b30000;
}

body {
	height: 100%;
	background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
	font-family: "Poppins", sans-serif;
	margin: 0;
	background-repeat: no-repeat;
	background-attachment: fixed;
	position: relative;
}

header {
	padding: 0.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color));
}

header ul li {
	font-size: 22px;
	font-family: cursive;
	list-style: none;
	border-radius: 5px;
	background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color));
	padding: 10px;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.5s;
}

header ul li:hover {
	background: linear-gradient(-45deg, #ff1a1a, #fff);
	color: var(--primary-color);
}

.logo {
	width: auto;
	height: 60px;
}

.git {
	width: auto;
	height: 30px;
}

.logos {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.search {
	background-color: transparent;
	border: 2px solid var(--secondary-color);
	padding: 0.5rem 1rem;
	border-radius: 50px;
	color: #fff;
	font-size: 1rem;
	font-family: inherit;
}

.search:focus {
	outline: 0;
	background-color: var(--secondary-color);
}

.search::placeholder {
	color: #ff6666;
}

main {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 10px;
}

.movie {
	width: 300px;
	border-radius: 3px;
	box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.4);
	background-color: var(--primary-color);
	position: relative;
	overflow: hidden;
}

.movie img {
	width: 100%;
}

.movie-info {
	color: #eee;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 0.5rem 1rem 1rem;
	letter-spacing: 0.5px;
	max-height: 150px;       
	overflow-y: auto;        
	scrollbar-width: thin;
	scrollbar-color: #b30000 #111;
}

.movie-info::-webkit-scrollbar {
	width: 6px;
}
.movie-info::-webkit-scrollbar-thumb {
	background: #b30000;
	border-radius: 4px;
}
.movie-info::-webkit-scrollbar-track {
	background: #111;
}

.movie-info h3 {
	margin-top: 0;
}

.movie-info span {
	background-color: var(--secondary-color);
	padding: 0.25rem 0.5rem;
	border-radius: 3px;
	font-weight: bold;
	color: #fff;
}

.movie-info span.green {
	color: lightgreen;
}

.movie-info span.orange {
	color: orange;
}

.movie-info span.red {
	color: #ff4d4d;
}

.overview {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #fff;
	padding: 1rem;
	max-height: 100%;
	transform: translateY(100%);
	transition: transform 0.5s ease-in;
	overflow-y: auto;         
	scrollbar-width: thin;
	scrollbar-color: #b30000 #eee;
}

.overview::-webkit-scrollbar {
	width: 6px;
}
.overview::-webkit-scrollbar-thumb {
	background: #b30000;
	border-radius: 4px;
}
.overview::-webkit-scrollbar-track {
	background: #eee;
}

.movie:hover .overview {
	transform: translateY(0);
}

#tags {
	width: 80%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin: 10px auto;
}

.tag {
	color: white;
	padding: 10px 20px;
	background-color: var(--primary-color);
	border-radius: 50px;
	margin: 5px;
	display: inline-block;
	cursor: pointer;
}

.tag.highlight {
	background-color: var(--secondary-color);
	color: #fff;
}

.no-results {
	color: white;
}

.pagination {
	display: flex;
	margin: 10px 30px 0;
	align-items: center;
	justify-content: center;
	color: white;
}

.page {
	padding: 20px;
	cursor: pointer;
}

.page.disabled {
	cursor: not-allowed;
	color: grey;
}

.current {
	padding: 10px 20px;
	border-radius: 50%;
	border: 5px solid var(--secondary-color);
	font-size: 20px;
	font-weight: 600;
}

.know-more {
	background-color: var(--secondary-color);
	color: white;
	font-size: 16px;
	font-weight: bold;
	border: 0;
	border-radius: 50px;
	padding: 10px 20px;
	margin-top: 5px;
	cursor: pointer;
}

.know-more:hover {
	background-color: #ff1a1a;
}

.overlay {
	height: 100%;
	width: 0;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	background-color: rgba(0, 0, 0, 0.95);
	overflow-x: hidden;
	transition: 0.5s;
}

.overlay-content {
	position: relative;
	top: 10%;
	width: 100%;
	text-align: center;
	margin-top: 30px;
}

.overlay a {
	padding: 8px;
	text-decoration: none;
	font-size: 36px;
	color: #ff6666;
	display: block;
	transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
	color: #fff;
}

.overlay .closebtn {
	position: absolute;
	top: 20px;
	right: 45px;
	font-size: 60px;
}

@media screen and (max-height: 450px) {
	.overlay a {
		font-size: 20px;
	}
	.overlay .closebtn {
		font-size: 40px;
		top: 15px;
		right: 35px;
	}
}

.embed.hide {
	display: none;
}

.embed.show {
	display: inline-block;
}

.arrow {
	position: absolute;
	font-size: 40px;
	color: var(--secondary-color);
}

.arrow.left-arrow {
	top: 50%;
	left: 5%;
	transform: translateY(-50%);
}

.arrow.right-arrow {
	top: 50%;
	transform: translateY(-50%);
	right: 5%;
}

.dots {
	margin-top: 30px;
	display: flex;
	flex-wrap: wrap;
}

.dots .dot {
	padding: 10px 15px;
	border-radius: 50%;
	border: 5px solid white;
	color: white;
	font-size: 20px;
	font-weight: 600;
	margin: 5px;
}

.dots .dot.active {
	border-color: var(--secondary-color);
	color: #ff4d4d;
}

.gateremark {
	margin-top: 0px;
	display: inline-block;
	color: var(--secondary-color);
	position: absolute;
	right: 20px;
	padding: 0px 30px 10px;
	transition: all 200ms ease-in;
}

.gateremark:hover {
	color: #fff;
}

.loader {
	width: 100%;
	height: 4.8px;
	display: inline-block;
	position: relative;
	background: rgba(255, 255, 255, 0.15);
	overflow: hidden;
}

.loader::after {
	content: '';
	box-sizing: border-box;
	width: 0;
	height: 4.8px;
	background: #fff;
	position: absolute;
	top: 0;
	left: 0;
	animation: animFw 10s linear infinite;
}

@keyframes animFw {
	0% {
		width: 0;
	}
	100% {
		width: 100%;
	}
}

.rating {
	margin: 10px 0;
}

.rating span {
	font-size: 1.5rem;
	cursor: pointer;
	transition: transform 0.2s;
	color: #aaa;
}

.rating span:hover {
	transform: scale(1.2);
	color: var(--secondary-color);
}

.rating span.active {
	color: #ffcc00;
}

.comments {
	margin-top: 10px;
}

.comments input {
	width: 70%;
	padding: 5px;
	border: 1px solid #a6a5a5ff;
	border-radius: 5px;
}

.comments button {
	padding: 6px 10px;
	margin-left: 5px;
	border: none;
	border-radius: 5px;
	background: var(--secondary-color);
	color: #fff;
	cursor: pointer;
}

.comments button:hover {
	background: #ff1a1a;
}

.comments ul {
	margin-top: 10px;
	padding-left: 0;
	list-style: none;
	max-height: 200px;
	overflow-y: auto;
	border: 1px solid #b30000;
	border-radius: 6px;
	background: #111;
	color: #fff;
	scrollbar-width: thin;
	scrollbar-color: #b30000 #222;
}

.comments ul::-webkit-scrollbar {
	width: 6px;
}

.comments ul::-webkit-scrollbar-thumb {
	background: #b30000;
	border-radius: 6px;
}

.comments ul::-webkit-scrollbar-track {
	background: #222;
}

.comments ul li {
	margin-bottom: 8px;
	background: #1a1a1a;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 500;
	color: #fff !important;
	border: 1px solid #b30000;
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

@media (max-width: 768px) {
	.comments ul {
		max-height: 150px;
	}
	.comments ul li {
		font-size: 0.9rem;
		padding: 8px 10px;
	}
}

@media (max-width: 480px) {
	.comments ul {
		max-height: 120px;
	}
	.comments ul li {
		font-size: 0.8rem;
	}
}

footer {
	margin-top: 40px;
	padding: 20px;
	text-align: center;
	color: #fff;
	background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.footer-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	padding: 20px;
}

.footer-left,
.footer-right {
	color: #fff;
	text-align: left;
}

.footer-right p {
	margin: 5px 0;
}

.footer-bottom {
	margin-top: 10px;
	text-align: center;
	color: #ddd;
	font-size: 14px;
}
