/* Archives */
.video-archive-wrapper {
  margin: 40px auto;
  padding: 0 15px;
}
.archive-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 20px;
}
.video-search-box {
  text-align: center;
  margin-bottom: 30px;
}
#video-search {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.video-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}
.video-card img {
  width: 100%;
  display: block;
}
.video-meta {
  padding: 5px;
}
.video-categories {
  margin-bottom: 0px;
}
.video-category {
  display: inline-block;
  background-color: #167124;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  margin-bottom: 2px;
  margin-left: 5px;
  border-radius: 5px;
}
.video-title {
  font-size: 16px;
  padding: 10px;
}
.pagination {
  margin-top: 30px;
  text-align: center;
}
.pagination button {
  background: #0073aa;
  border: none;
  color: #fff;
  padding: 8px 14px;
  margin: 0 3px;
  border-radius: 4px;
  cursor: pointer;
}
.pagination button.active {
  background: #005177;
}
/* Spinner */
.custom-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

.spinner-circle {
  width: 24px;
  height: 24px;
  border: 3px solid #ddd;
  border-top: 3px solid #28a745; /* Warna utama */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-text {
  font-size: 14px;
  color: #555;
  font-style: italic;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Single */
.video-page-wrapper {
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 15px;
}
.video-sidebar {
  flex: 1 1 30%;
  max-width: 350px;
}
.video-tube-thumb {
  width: 80px;
  height: auto;
  border-radius: 4px;
}
.link-video-tube {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}
.video-meta-info {
  font-size: 14px;
  color: #13871d;
  margin-bottom: 10px;
  border-bottom: 1px solid #bbc1bc;
  padding-bottom: 10px;
}
.video-sidebar h3 {
  font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 8px;
}
.related-video-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-video-list li {
  margin-bottom: 15px;
}
.related-video-list a {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #333;
}
.related-video-list img {
  width: 80px;
  height: auto;
  border-radius: 4px;
}
.related-video-list span {
  font-size: 12px;
}
.video-content {
  flex: 2 1 65%;
}
.video-content h1 {
  font-size: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid #bbc1bc;
  padding-bottom: 15px;
  font-weight: 800;
}
.video-thumbnail {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 20px;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.video-description {
  background: #efefef;
  padding: 20px;
  border-bottom: 1px solid #c8e5cf;
  border-right: 1px solid #c8e5cf;
  border-left: 1px solid #c8e5cf;
}

/* Tombol ke arsip */
.btn-video-link {
  display: inline-block;
  margin-top: 10px;
  background: #1058a5;
  color: #e9ecef;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-video-link:hover {
  background: rgb(8, 112, 60);
  color: #fff;
}
@media screen and (max-width: 768px) {
  .video-page-wrapper {
    flex-direction: column;
  }
  .video-sidebar,
  .video-content {
    max-width: 100%;
  }
}
