* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
	background: #f5f5f5;
	padding: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

header {
	background: white;
	padding: 30px;
	border-radius: 8px;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
	font-size: 2.5em;
	margin-bottom: 20px;
	color: #333;
}

#search {
	width: 100%;
	padding: 20px;
	font-size: 1.5em;
	border: 3px solid #ddd;
	border-radius: 8px;
	outline: none;
}

#search:focus {
	border-color: #4285f4;
}

#stats {
	margin-top: 15px;
	font-size: 1.2em;
	color: #666;
}

#results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
}

.video-card {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s, box-shadow 0.2s;
	cursor: pointer;
}

.video-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	background: #000;
}

.video-info {
	padding: 20px;
}

.video-title {
	font-size: 1.3em;
	font-weight: bold;
	margin-bottom: 10px;
	color: #333;
	line-height: 1.4;
}

.video-description {
	font-size: 1.1em;
	color: #666;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.no-results {
	text-align: center;
	padding: 60px 20px;
	font-size: 1.5em;
	color: #666;
	background: white;
	border-radius: 8px;
}

#pagination button {
	padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
	font-size: clamp(1rem, 2.5vw, 1.3rem);
	border: 2px solid #4285f4;
	border-radius: 8px;
	background: white;
	color: #4285f4;
	cursor: pointer;
	transition: all 0.2s;
	min-width: clamp(100px, 20vw, 150px);
}

#pagination button:hover:not(:disabled) {
	background: #4285f4;
	color: white;
	transform: scale(1.05);
}

#pagination button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	border-color: #ccc;
	color: #ccc;
}

@media (max-width: 768px) {
	#results {
		grid-template-columns: 1fr;
	}

	h1 {
		font-size: 2em;
	}

	#search {
		font-size: 1.2em;
		padding: 15px;
	}
}
