:root {
  --bg-primary: #181818;
  --bg-secondary: #212121;
  --text-color: #f1f1f1;
  --card-bg: #2d2d2d;
  --border-color: #444;
  --link-hover: #0d6efd;
  --branding-color-yellow: #ffcb03;
  --branding-green: #026701;
}
*:focus{
    color:unset;
    outline:unset;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #ecf0f1;
  color: #000;
}

/* Navigation Bar */
.navbar-brand,
.form-control,
.btn-outline-primary {
  color: var(--text-color);
}

.navbar--brand {
  background-color: #e6f3e5;
}

.navbar-brand:hover,
.btn-outline-primary:hover {
  color: var(--link-hover) !important;
  border-color: var(--link-hover);
}

.navbar--logo img {
  width: 170px;
}

#videoSearch {
  width: 360px;
  height: 50px;
}

.btn--search {
  background-color: var(--branding-color-yellow);
}

.form-control::-moz-placeholder {
  color: #888;
}

.form-control::placeholder {
  color: #888;
}

/* Video Gallery Grid */
.video-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
}

.image--avatar {
  width: 48px;
  height: 48px;
  -o-object-fit: cover;
  object-fit: cover;
}

.text--reply * {
  color: #fff;
}

.comment--section *::-moz-placeholder {
  font-size: 16px;
}

.comment--section *::placeholder {
  font-size: 16px;
}

/* Video Card Styling */
.video-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.09);
  text-decoration: none;
  color: var(--text-color);
}

.video-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.video-card img {
  width: 100%;
  height: 250px;
  -o-object-fit: cover;
  object-fit: cover;
}
p:empty, .text-black.d-none{
    display:none;
}

#likeBtn{
  color: #54585b;
}
.list-inline-item.text-black + p{
    display:none;
}
.card-body {
  padding: 1rem;
}

.video-card h5 {
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.video-card .text-muted {
  font-size: 0.85rem;
  color: #aaa !important;
}

/* Video Player Section */
#videoPlayerSection {
  border-radius: 10px;
  padding: 2rem;
}

.video-details h1 {
  font-weight: 600;
  margin-top: 1rem;
  font-size: clamp(1.25rem, 0.8594rem + 1.25vw, 1.5625rem);
}

.related-videos h2 {
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.related-video-item {
  display: flex;
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
  border-radius: 5px;
  padding: 0.5rem;
}

.related-video-item:hover {
  background-color: #f7f1f1;
}

.related-video-item img {
  width: 210px;
  aspect-ratio: 2/1;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 1rem;
}

.related-video-item .video-info {
  flex-grow: 1;
}

.related-video-item h6 {
  font-size:14px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0;
}

.related-video-item small {
  color: #aaa;
}

.comment-list .border---btm:not(:last-child) {
  border-bottom: 1px solid rgb(207, 204, 204);
  padding-bottom: 30px;
}

@media (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .video-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .navbar--logo img {
    width: 70px;
}
}

@media (max-width: 400px) {
  /*#videoSearch {*/
  /*  width: 100%;*/
  /*}*/
  .related-video-item {
    flex-direction: column;
  }
  .related-video-item img {
    width: 100%;
  }
  .related-video-item .video-info {
    margin-top: 10px;
  }
}

 #videoDescription {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show only 2 lines */
    -webkit-box-orient: vertical;
  }

  #toggleLink {
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
  }

  .expanded {
    -webkit-line-clamp: unset !important;
  }
    #videoDescription:empty{
        display:none;
    }
  #videoDescription:empty  + #toggleLink{
      display:none;
  }