:root {
  --primary-color: #03050e;
  --secondary-color: #000203;
  --accent-color: #404ff3;
  --background-color-body: #F9F9F9;
  --background-color-main-content: #FFFFFF;
  --text-color: #212121;
  --text-color-light: #030303;
  --border-color: #E0E0E0;
  --card-bg: #FFFFFF;
  --hover-color-light: #F0F0F0;
  --hover-color-dark: #303F9F;
  --active-color: #283593;
  --shadow-light: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-medium: 0 3px 6px rgba(0,0,0,0.12);
  --shadow-strong: 0 6px 12px rgba(0,0,0,0.18);
  --spacing-unit: 1rem;
  --spacing-unit-small: 0.5rem; /* Menambahkan ini untuk 404 page */
  --font-body: -apple-system, BlinkMacMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --border-radius-small: 2px;
  --border-radius-medium: 4px;
  --border-radius-large: 8px;

  /* Theme variables for easy mapping */
  --theme-background: var(--background-color-main-content);
  --text-color-heading: var(--text-color);
  --text-color-body: var(--text-color);
  --button-text-color: white; /* Default button text color */
  --primary-color-hover: #303F9F; /* Menambahkan ini untuk 404 page */
  --secondary-color-hover: #37474F; /* Menambahkan ini untuk 404 page */
  --heading-color: var(--text-color); /* Menambahkan ini untuk 404 page */
}

body.dark-mode {
  --primary-color: #6c6375;
  --secondary-color: #B0B0B0;
  --accent-color: #3a3939;
  --background-color-body: #181818;
  --background-color-main-content: #000000;
  --text-color: #E0E0E0;
  --text-color-light: #A0A0A0;
  --border-color: #080000;
  --card-bg: #030000;
  --hover-color-light: #050000;
  --hover-color-dark: #6C7DD7;
  --active-color: #7986CB;
  --shadow-light: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-medium: 0 3px 6px rgba(0,0,0,0.5);
  --shadow-strong: 0 6px 12px rgba(0,0,0,0.6);

  /* Dark mode specific theme variables */
  --theme-background: var(--background-color-main-content);
  --text-color-heading: var(--text-color);
  --text-color-body: var(--text-color-light);
  --button-text-color: var(--text-color); /* Adjust if buttons should be darker in dark mode */
  --primary-color-hover: #4A4557; /* Menyesuaikan untuk dark mode */
  --secondary-color-hover: #757575; /* Menyesuaikan untuk dark mode */
  --heading-color: var(--text-color); /* Menyesuaikan untuk dark mode */
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--spacing-unit);
  line-height: 1.6;
  background-color: var(--background-color-body);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-color);
  line-height: 1.2;
  margin-top: calc(var(--spacing-unit) * 1.5);
  margin-bottom: var(--spacing-unit);
  transition: color 0.3s ease;
}

h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
}
h2 {
  font-size: 1.6rem;
  font-weight: 700;
}
h3 {
  font-size: 1.5rem;
  font-weight: 600;
}
h4 {
  font-size: 1.2rem;
  font-weight: 600;
}
h5 {
  font-size: 1rem;
  font-weight: 500;
}
h6 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color-light);
}

p {
  margin-bottom: var(--spacing-unit);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: var(--hover-color-dark);
  text-decoration: underline;
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-medium);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background-color: var(--primary-color);
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: none;
}

button:hover, .button:hover {
  background-color: var(--hover-color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.button-secondary {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.button-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-light);
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: var(--spacing-unit);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: var(--spacing-unit);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

input[type="search"]::placeholder,
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
  color: var(--text-color-light);
}

input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.3);
}

header {
  background-color: var(--card-bg);
  padding: 0.2rem 0;
  box-shadow: var(--shadow-medium);
  position: static;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 1.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: bold;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--primary-color);
}

.search-form {
  display: flex;
  flex-grow: 1;
  margin: 0 var(--spacing-unit);
  max-width: 400px;
  order: 0;
}

.search-form input[type="search"] {
  flex-grow: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-medium) 0 0 var(--border-radius-medium);
  font-size: 1rem;
  outline: none;
  background-color: var(--background-color-body);
  color: var(--text-color);
}

.search-form button {
  background-color: var(--accent-color);
  color: white;
  border-radius: 0 var(--border-radius-medium) var(--border-radius-medium) 0;
  font-weight: bold;
  padding: 0.65rem 1rem;
  text-transform: none;
  letter-spacing: unset;
  box-shadow: none;
  border: 1px solid var(--accent-color);
}

.search-form button:hover {
  background-color: #CC0000;
  transform: none;
  box-shadow: none;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  order: 0;
}

.nav-links li {
  margin-left: calc(var(--spacing-unit) * 1.25);
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--primary-color);
  font-weight: 600;
}

main {
  width: 100%;
  margin: 0;
  padding: calc(var(--spacing-unit) * 0) calc(var(--spacing-unit) * 1);
  background-color: var(--background-color-main-content);
  box-shadow: var(--shadow-medium);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--border-radius-large);
}

.breadcrumb {
  margin-bottom: var(--spacing-unit);
  font-size: 0.9em;
  color: var(--text-color-light);
  padding: var(--spacing-unit) 0;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb a {
  color: var(--secondary-color);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: var(--border-color);
  transition: color 0.3s ease;
}

.breadcrumb li:last-child span {
  font-weight: 600;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.page-title, .category-title-header, .search-results-title {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 1.2);
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: var(--spacing-unit);
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: left;
  margin-top: calc(var(--spacing-unit) * 1.5);
  margin-bottom: calc(var(--spacing-unit) * 1);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  display: inline-block;
  padding-right: var(--spacing-unit);
  width: auto;
  transition: color 0.3s ease, border-color 0.3s ease;
  color: var(--text-color);
}

.category-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: calc(var(--spacing-unit) * 1.5);
  margin-bottom: calc(var(--spacing-unit) * 1);
  text-align: left;
  color: var(--text-color);
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-right: var(--spacing-unit);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.category-title .category-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.category-title .category-link:hover {
  color: var(--primary-color);
}

.page-info {
  font-size: 0.6em;
  color: var(--text-color-light);
  display: block;
  margin-top: 5px;
  transition: color 0.3s ease;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 1.2);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.video-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  background-color: var(--hover-color-light);
}

.thumbnail-container {
  width: 100%;
  padding-bottom: 56.25%;
  position: relative;
  overflow: hidden;
}

.thumbnail-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease;
}

.video-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Default tersembunyi */
  transition: opacity 0.3s ease-in-out;
}

.video-card:has(.video-preview):hover .video-thumbnail {
  opacity: 0; /* Thumbnail menghilang */
}

.video-card:has(.video-preview):hover .video-preview {
  opacity: 1; /* Video pratinjau muncul */
}

.video-card:hover .thumbnail-container img {
  transform: scale(1.05);
}

.video-card.video-preview-error .video-preview {
  display: none !important; /* Sembunyikan video preview */
}

/* Penting: Pastikan saat hover pada kartu yang error, thumbnail TIDAK berubah */
.video-card.video-preview-error:hover .video-thumbnail {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.video-card.video-preview-error:hover .video-preview {
  opacity: 0 !important; /* Tetap tersembunyi */
  display: none !important;
}

.duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
}

.video-info {
  padding: var(--spacing-unit);
}

/* --- Start of VideoCard.astro specific CSS added to global.css --- */
.video-title {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.3s ease;
}

.video-category {
  font-size: 0.85em;
  color: var(--text-color-light);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
/* --- End of VideoCard.astro specific CSS added to global.css --- */

.hero-section {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 1.25);
  background: linear-gradient(135deg, var(--primary-color), #4CAF50);
  color: white;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hero-section h1 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: white;
  font-size: 2.2rem;
}

.hero-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 750px;
  margin: 0 auto;
}

.latest-videos-section,
.all-categories-section {
  margin-top: calc(var(--spacing-unit) * 2.5);
}

.category-group {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.no-videos-overall, .no-videos-in-category, .no-videos-found, .no-categories, .no-tags-message {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.1em;
  color: var(--text-color-light);
  padding: calc(var(--spacing-unit) * 2) 0;
  background-color: var(--card-bg);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-light);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.view-all-button-container {
  text-align: right;
  margin-top: var(--spacing-unit);
}

.view-all-button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius-medium);
  font-weight: 500;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-light);
}

.view-all-button:hover {
  background-color: #CC0000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.video-detail-page {
}

.video-player-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: #000;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  margin-bottom: calc(var(--spacing-unit) * 1.2);
  box-shadow: var(--shadow-medium);
}

.video-player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

main.video-detail-page .video-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
  margin-top: calc(var(--spacing-unit) * 0.2);
  margin-bottom: var(--spacing-unit);
  line-height: 1.2;
  text-align: left;
  border-bottom: none;
  padding-bottom: 0;
}

.video-description {
  font-size: 1em;
  color: var(--text-color-light);
  line-height: 1.6;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  max-width: 750px;
  transition: color 0.3s ease;
}

.video-tags-container {
  margin-top: calc(var(--spacing-unit) * 1.8);
  border-top: 1px solid var(--border-color);
  padding-top: calc(var(--spacing-unit) * 1);
  transition: border-color 0.3s ease;
}

main.video-detail-page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: var(--spacing-unit);
  transition: color 0.3s ease;
}

main.video-detail-page h3 {
  font-size: 1rem;
  font-weight: 500;
}

main.video-detail-page h4 {
  font-size: 0.9rem;
  font-weight: 500;
}

main.video-detail-page h5 {
  font-size: 0.8rem;
  font-weight: 500;
}

main.video-detail-page h6 {
  font-size: 0.7rem;
  font-weight: 500;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-item {
  display: inline-block;
  background-color: transparent;
  color: var(--text-color-light);
  font-size: 0.85em;
  transition: color 0.2s ease, text-decoration 0.2s ease;
  margin-right: 0.6rem;
  margin-bottom: 0.6rem;
}

.tag-item:hover {
  color: var(--primary-color);
  text-decoration: underline;
  background-color: transparent;
  transform: none;
  box-shadow: none;
  cursor: pointer;
}

body.dark-mode .tag-item {
  color: var(--text-color-light);
}

body.dark-mode .tag-item:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.related-videos-section {
  margin-top: calc(var(--spacing-unit) * 2.5);
}

.related-videos-section .section-title {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  margin-top: calc(var(--spacing-unit) * 1.5);
  margin-bottom: calc(var(--spacing-unit) * 1);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  display: inline-block;
  padding-right: var(--spacing-unit);
  width: auto;
  transition: color 0.3s ease, border-color 0.3s ease;
}

/* --- Pagination Styles (Combined from search and category) --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: calc(var(--spacing-unit) * 1.5);
  padding: calc(var(--spacing-unit) * 0.8);
  background-color: var(--background-color-main-content);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.pagination-link {
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  font-size: 0.9em;
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small); /* Adjusted to small for links */
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: inline-flex; /* Ensure it behaves like a flex item */
  align-items: center;
  justify-content: center;
}

.pagination-link:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-color: var(--primary-color); /* Match border to background on hover */
}

.pagination-link.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  font-weight: bold;
  pointer-events: none; /* Nonaktifkan klik pada halaman aktif */
}

.pagination-link.ellipsis {
  background-color: transparent;
  border-color: transparent;
  color: var(--text-color-light);
  cursor: default;
  pointer-events: none; /* Pastikan tidak bisa diklik */
}
/* --- End of Pagination Styles --- */

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: calc(var(--spacing-unit) * 1);
}

.category-item {
  padding: calc(var(--spacing-unit) * 1.2);
}

.category-item-title {
  font-size: 1.4em;
}

.category-item-count {
  font-size: 1em;
}

.tags-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
  padding: calc(var(--spacing-unit) * 0.8);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.tag-card {
  padding: 0.8rem;
  font-size: 1em;
  min-height: 70px;
}

footer {
  background-color: var(--card-bg);
  color: var(--text-color-light);
  text-align: center;
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 1.25);
  margin-top: auto;
  font-size: 0.8rem;
  border-top: 1px solid var(--border-color);
  box-shadow: var(--shadow-medium);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Start of New CSS for Short Video Page (src/pages/shorts/[id].astro) --- */
.short-video-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: var(--theme-background);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-small);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.short-video-page .breadcrumb {
  /* Override default main breadcrumb styles if needed, or let them inherit */
  padding-left: 0;
  padding-right: 0;
  border-bottom: none; /* Remove border from the main breadcrumb */
  margin-bottom: 1rem;
}
.short-video-page .breadcrumb ol {
  justify-content: center; /* Center breadcrumbs on short video page */
}


.video-container {
  width: 100%;
  max-width: 400px; /* Lebar maksimum yang lebih cocok untuk video vertikal */
  margin: 0 auto 1.5rem auto; /* Pusatkan dan beri jarak bawah */
  aspect-ratio: 9 / 16; /* Rasio aspek khas vertikal video pendek */
  background-color: black;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  box-shadow: var(--shadow-medium); /* Menambahkan bayangan ke kontainer video */
}

.main-short-video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* agar video tidak terpotong dalam wadah */
  display: block; /* Menghilangkan spasi ekstra di bawah video */
}

.short-video-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 1rem; /* Adjust margin-top to separate from video container */
  margin-bottom: 0.5rem;
  color: var(--text-color-heading);
  text-align: center;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.short-video-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color-body);
  margin-bottom: 1.5rem;
  text-align: center;
  transition: color 0.3s ease;
}

.link-to-full-video {
  text-align: center;
  margin-top: 1.5rem;
}

.link-to-full-video a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--button-text-color);
  text-decoration: none;
  border-radius: var(--border-radius-small);
  transition: background-color 0.3s ease;
}

.link-to-full-video a:hover {
  background-color: var(--hover-color-dark); /* Menggunakan hover-color-dark dari variabel */
  transform: translateY(-2px); /* Menambahkan efek hover */
  box-shadow: var(--shadow-light); /* Menambahkan efek bayangan */
}
/* --- End of New CSS for Short Video Page --- */


  .not-found-page {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
  }

  .not-found-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-medium);
    padding: calc(var(--spacing-unit) * 2);
    margin: calc(var(--spacing-unit) * 2) auto;
    max-width: 700px;
    box-shadow: var(--shadow-light);
  }

  .not-found-title {
    font-size: 5em;
    color: var(--accent-color);
    margin-bottom: var(--spacing-unit-small);
  }

  .not-found-message {
    font-size: 1.5em;
    color: var(--heading-color);
    margin-bottom: var(--spacing-unit-small);
  }

  .not-found-suggestion {
    font-size: 1.1em;
    color: var(--text-color-light);
    margin-bottom: var(--spacing-unit);
  }

  .button-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8em 1.5em;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
    margin-top: var(--spacing-unit);
  }

  .button-primary:hover {
    background-color: var(--primary-color-hover);
  }

  .search-form-404 {
    margin-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-unit);
  }

  .search-form-404 p {
    margin-bottom: var(--spacing-unit-small);
    color: var(--text-color);
  }

  .search-form-404 input[type="text"] {
    padding: 0.7em;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    margin-right: var(--spacing-unit-small);
    width: 200px; /* Sesuaikan lebar */
  }

  .search-form-404 button {
    padding: 0.7em 1.2em;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .search-form-404 button:hover {
    background-color: var(--secondary-color-hover);
  }

  .random-videos-section {
    margin-top: calc(var(--spacing-unit) * 3);
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid var(--border-color);
  }

  .random-videos-section .section-title {
    text-align: center;
    margin-bottom: var(--spacing-unit);
    color: var(--heading-color);
    font-size: 1.8em;
  }

/* --- Start of Search No Results Message --- */
.no-results-message {
  text-align: center;
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: calc(var(--spacing-unit) * 2) auto;
  max-width: 600px;
  box-shadow: var(--shadow-light);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
/* --- End of Search No Results Message --- */


@media (max-width: 992px) {
  main {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius-large);
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  h4 {
    font-size: 1.05rem;
  }
  h5 {
    font-size: 0.9rem;
  }
  h6 {
    font-size: 0.8rem;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
  main.video-detail-page .video-title {
    font-size: 1.3rem;
  }
  main.video-detail-page h2 {
    font-size: 1.1rem;
  }
  main.video-detail-page h3 {
    font-size: 0.95rem;
  }
  main.video-detail-page h4 {
    font-size: 0.85rem;
  }
  main.video-detail-page h5 {
    font-size: 0.75rem;
  }
  main.video-detail-page h6 {
    font-size: 0.65rem;
  }
  .related-videos-section .section-title {
    font-size: 1.1rem;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-unit);
  }

  .category-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: calc(var(--spacing-unit) * 0.8);
  }

  /* Responsive for short video page */
  .short-video-title {
    font-size: 2rem;
  }
  .short-video-description {
    font-size: 0.95rem;
  }

  /* Responsive for 404 page */
  .not-found-title {
    font-size: 4em;
  }
  .not-found-message {
    font-size: 1.3em;
  }
  .not-found-suggestion {
    font-size: 1em;
  }
  .random-videos-section .section-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo {
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
  }
  .search-form {
    width: 100%;
    margin: 0.5rem 0;
    order: 1;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    order: 2;
  }
  .nav-links li {
    margin-left: 0;
    margin: 0 0.6rem;
  }

  main {
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 1.5);
  }

  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.16rem;
  }
  h3 {
    font-size: 1.15rem;
  }
  h4 {
    font-size: 0.95rem;
  }
  h5 {
    font-size: 0.85rem;
  }
  h6 {
    font-size: 0.75rem;
  }
  .hero-section h1 {
    font-size: 1.8rem;
  }
  .hero-section p {
    font-size: 0.9rem;
  }
  main.video-detail-page .video-title {
    font-size: 1.15rem;
    text-align: center;
  }
  main.video-detail-page h2 {
    font-size: 0.95rem;
  }
  main.video-detail-page h3 {
    font-size: 0.85rem;
  }
  main.video-detail-page h4 {
    font-size: 0.75rem;
  }
  main.video-detail-page h5 {
    font-size: 0.7rem;
  }
  main.video-detail-page h6 {
    font-size: 0.65rem;
  }
  .related-videos-section .section-title {
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    padding-right: 0;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: calc(var(--spacing-unit) * 0.8);
  }

  .page-title, .section-title, .category-title-header, .search-results-title {
    text-align: center;
    display: block;
    width: 100%;
  }
  .category-title {
    text-align: center;
    display: block;
    width: 100%;
    padding-right: 0;
  }

  .view-all-button-container {
    text-align: center;
  }

  .category-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: calc(var(--spacing-unit) * 0.6);
  }
  .category-item {
    padding: calc(var(--spacing-unit) * 0.8);
  }
  .tags-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
  }
  .tag-card {
    min-height: 60px;
    font-size: 0.9em;
    padding: 0.6rem;
  }

  /* Responsive for short video page */
  .short-video-title {
    font-size: 1.8rem;
  }
  .short-video-description {
    font-size: 0.9rem;
  }
  .video-container {
    max-width: 100%; /* Full width on very small screens */
  }

  /* Responsive for 404 page */
  .not-found-title {
    font-size: 3em;
  }
  .not-found-message {
    font-size: 1.2em;
  }
  .not-found-suggestion {
    font-size: 0.95em;
  }
  .random-videos-section .section-title {
    font-size: 1.2em;
  }
  .search-form-404 input[type="text"] {
    width: 150px; /* Adjust width for smaller screens */
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-unit: 0.85rem;
  }

  main {
    padding: var(--spacing-unit);
  }

  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  h3 {
    font-size: 1rem;
  }
  h4 {
    font-size: 0.85rem;
  }
  h5 {
    font-size: 0.75rem;
  }
  h6 {
    font-size: 0.65rem;
  }
  .hero-section h1 {
    font-size: 1.5rem;
  }
  .hero-section p {
    font-size: 0.85rem;
  }
  main.video-detail-page .video-title {
    font-size: 1rem;
  }
  main.video-detail-page h2 {
    font-size: 0.85rem;
  }
  main.video-detail-page h3 {
    font-size: 0.75rem;
  }
  main.video-detail-page h4 {
    font-size: 0.65rem;
  }
  main.video-detail-page h5 {
    font-size: 0.6rem;
  }
  main.video-detail-page h6 {
    font-size: 0.55rem;
  }
  .related-videos-section .section-title {
    font-size: 0.85rem;
  }
  .video-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .video-info {
    padding: var(--spacing-unit);
  }

  .pagination {
    padding: 0.5rem;
    gap: 0.4rem;
  }
  .pagination-link {
    min-width: 30px;
    height: 30px;
    font-size: 0.7em;
  }

  .tags-grid {
    grid-template-columns: 1fr;
  }
  .tag-card {
    min-height: 50px;
    font-size: 0.8em;
    padding: 0.5rem;
  }

  .video-player-container {
    padding-bottom: 100%; /* Change to 1:1 Aspect Ratio for mobile (16 / 16 * 100%) */
  }

  /* Responsive for short video page */
  .short-video-title {
    font-size: 1.5rem;
  }
  .short-video-description {
    font-size: 0.85rem;
  }
  .video-container {
    max-width: 100%; /* Full width on very small screens */
  }

  /* Responsive for 404 page */
  .not-found-title {
    font-size: 2.5em;
  }
  .not-found-message {
    font-size: 1em;
  }
  .not-found-suggestion {
    font-size: 0.85em;
  }
  .random-videos-section .section-title {
    font-size: 1em;
  }
  .search-form-404 input[type="text"] {
    width: 100%; /* Full width on very small screens */
    margin-right: 0;
    margin-bottom: var(--spacing-unit-small);
  }
  .search-form-404 button {
    width: 100%;
  }
}
