body {
  background: #111;
  color: #fff;
  font-family: sans-serif;
  padding: 0px 20px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}
#searchForm {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px #00000040;
}
#searchForm input {
  padding: 8px 12px;
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  width: 220px;
  transition: all 0.2s ease;
}
#searchForm input:focus {
  border-color: #00aaff;
  box-shadow: 0 0 5px #00aaff80;
}
#searchForm button {
  padding: 8px 14px;
  background: #00aaff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
#searchForm button:hover {
  background: #0077cc;
  transform: scale(1.05);
}
@media (max-width: 600px) {
	body { padding: 0px; }
	header { padding: 0px; padding-bottom: 4px; }
	#logo, #logo img, #searchForm { width: 100%; }
	#searchForm input { width: 80%; }
	#searchForm button { padding: 8px; width: 15%; }
}
#logo img {
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 0 5px #00aaff50;
}
h2 {
  margin-top: 15px;
  color: #00aaff;
  font-weight: 500;
  font-size: 1.2rem;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.card {
  background: #1d1d1d;
  border-radius: 10px;
  overflow: hidden;
  padding: 10px;
  transition: 0.2s;
}
.card:hover {
  transform: scale(1.02);
}
.thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
}
.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.title {
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* Maksimal 2 baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3em;             /* Jaga-jaga untuk 2 baris */
  line-height: 1.5em;
}
.meta {
  font-size: 12px;
  color: #aaa;
}
#embedPlayer {
	max-width: 800px;
  margin: 20px auto;
}
.embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Rasio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.stream-title {
	text-align: center;
	padding: 10px;
}
.pagination {
  text-align: center;
  margin-top: 20px;
}
.pagination button {
  padding: 6px 10px;
  margin: 2px;
  border-radius: 6px;
  background: #222;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: default;
}
.pagination button:hover:not(.active):not(:disabled) {
  background: #333;
  transform: scale(1.05);
}
.pagination button.active {
  background: #00aaff;
  font-weight: bold;
}
.pagination button.active {
  background: #00aaff;
  font-weight: bold;
  cursor: default;
  pointer-events: none;
}
#categoryList {
	text-align: center;
	padding: 20px 10px;
	background-color: #2d2d2d;
	margin-top: 20px;
}
#categoryList a {
	color: white;
	text-decoration: none;
}
#categoryList a:hover {
	color: #f1c40f;
}
#scrollUpBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background: #222;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
}
#scrollUpBtn.show {
  opacity: 0.8;
  pointer-events: auto;
}
#scrollUpBtn:hover {
  opacity: 1;
  background-color: #ff4081; /* warna hover pink bold */
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
footer {
	background-color: #1f1f1f;
	padding:5px;
	text-align: center;
	color: #7f8c8d;
	font-size: 0.9rem;
	position: relative;
}
footer p {
  margin-bottom: 20px;
}