/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Body Styling */
body {
  font-family: 'Arial', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* Header Styling */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e1e1e;
  padding: 10px 20px;
  color: #fff;
  flex-wrap: wrap;
  gap: 10px;
}
.ruby {
  display: block ruby;
}
.search-container {
  flex: 1;
  max-width: 400px;
  width: 100%;
}
#search-form {
  display: flex;
  width: 100%;
  background: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
}
#search-form input[type="text"] {
  flex: 1;
  padding: 10px 15px;
  border: none;
  outline: none;
  background: #2a2a2a;
  color: #fff;
  font-size: 14px;
}
#search-form input::placeholder {
  color: #aaa;
}
#search-form button {
  padding: 10px 20px;
  background: #66ccff;
  color: #1e1e1e;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}
#search-form button:hover {
  background: #33bbff;
}
.nav {
  flex: 1;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  white-space: nowrap;
}
header a {
  color: #f1c40f;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.2rem;
}
header a:hover {
  color: #ffe064;
}
.logo img {
  height: 30px;
  max-width: 100%;
}
#header-title {
  font-size: 1.2rem;
  font-weight: bold;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  #header-title {
    display: none;
  }
}
/* Main Content Styling */
main {
  flex: 1;
  padding: 20px;
}
@media screen and (max-width: 600px) {
  main {
    padding: 0;
  }
}
/* Video List Container */
.list-video,
.related-video {
  display: grid;
  gap: 20px;
}
.list-video {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.related-video {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
/* Video Thumbnail Styling */
.thumb-video {
  background-color: #2c2c2c;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.2s;
  position: relative;
}
.thumb-video:hover {
  transform: translateY(-10px);
}
.thumb-video img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  display: block;
  margin-bottom: 10px;
}
.image,
.preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-video {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.thumb-video:hover .preview-video {
  opacity: 1;
}
.titles {
  font-size: 1rem;
  color: #f1c40f;
  margin-top: 5px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .titles {
    font-size: 12px;
  }
}
/*
.people a {
  color: #888;
  text-decoration: none;
}
.people a:hover {
  color: #bbb;
}
*/
.people {display:none;}
.ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: black;
  padding: 1px 6px;
  border-radius: 2px;
  opacity: 0.6;
}
/* Pagination Styling */
.pagination {
  text-align: center;
  margin-top: 20px;
}
.pagination a {
  display: inline-block;
  padding: 6px 8px;
  margin: 2px;
  border-radius: 5px;
  background-color: #f1c40f;
  color: #121212;
  text-decoration: none;
  transition: background-color 0.3s;
}
.pagination a:hover {
  background-color: #e67e22;
}
.pagination a.active {
  pointer-events: none;
  background-color: #2c2c2c;
  color: white;
}
/* Footer Styling */
footer {
  background-color: #1f1f1f;
  padding: 10px;
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9rem;
  position: relative;
}
footer p {
  margin-bottom: 10px;
}
/* Iframe Container */
.iframe-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: auto;
  padding-bottom: 40.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Iframe Video Styling */
.iframe-video {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}
.iframe-video video {
  width: 100%;
  max-height: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}
.iframe-video a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.iframe-video a:hover {
  background-color: #45a049;
}
@media (max-width: 600px) {
  .iframe-container {
    padding-bottom: 56.25%;
  }
  .iframe-video {
    padding: 10px;
  }
  .iframe-video video,
  .iframe-video iframe {
    max-height: 300px;
  }
  .iframe-video a {
    width: 100%;
    text-align: center;
  }
  .iframe-video h3 {
    font-size: 16px;
  }
  .iframe-video span {
    font-size: 12px;
  }
}
/* Scroll Up Button */
#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;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
/* Tag & Language Lists */
.lang-list,
.tag-list {
  margin: 20px 0;
  padding: 10px;
  background: #1e1e1e;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #ddd;
  word-wrap: break-word;
  word-break: break-word;
}
.lang-link,
.tags-link {
  color: #f1c40f;
  text-decoration: none;
  font-weight: 500;
  margin: 0 3px;
}
.lang-link:hover,
.tags-link:hover {
  text-decoration: underline;
  color: #e0e0e0;
}
.badge {
  color: #bbb;
  font-size: 12px;
  margin-left: 3px;
}