/* Importing Google Font - Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rajdhani:wght@300;400;500;600;700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Barlow;
}
/* Color variables for light theme */
:root {
--bg-color-light: #f4f4f4;
--bg-color-dark: #181818;
--text-color-light: #000;
--text-color-dark: #fff;
--card-bg-light: #fff;
--card-bg-dark: #282828;
--disphide-dark: none;
--disphide-light: none;
--btn-bg-light: #ececec;
--btn-bg-dark: #282828;
--tw-bg-opacity: 1;
--bgyt-dth: rgb(31 41 55 / var(--tw-bg-opacity));
  --white-color: #fff;
  --black-color: #000;
  --light-white-color: #f0f0f0;
  --light-gray-color: #e5e5e5;
  --border-color: #ccc;
  --primary-color: #3b82f6;
  --secondary-color: #404040;
  --overlay-dark-color: rgba(0, 0, 0, 0.6);
  --bgbtnyt:var(--btn-bg-light);
  --bg-color: var(--bg-color-light);
  --text-color: var(--text-color-light);
  --card-bg: var(--card-bg-light);
  --hideonwhite: var(--disphide-light);
  --btn-bg:var(--btn-bg-light);
}

/* Color variables for dark theme */
.dark-mode {
  --white-color: #171717;
  --black-color: #d4d4d4;
  --light-white-color: #333;
  --light-gray-color: #404040;
  --border-color: #808080;
  --secondary-color: #d4d4d4;    
  --bgbtnyt:var(--bgyt-dth);
    --btn-bg:var(--btn-bg-dark);
    --hideondark: var(--disphide-dark);
    --bg-color: var(--bg-color-dark);
    --text-color: var(--text-color-dark);
    --card-bg: var(--card-bg-dark);
}

body {
  background: var(--white-color);
}
iframe {
  border-radius: 10px;
}
.container {
  display: flex;
  overflow: hidden;
  max-height: 100vh;
  max-width: 100%;
  flex-direction: column;
}

header, .sidebar .nav-left, .category-list {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white-color);
}
.sidebar{
  transition: 0.2s ease;
}
.video-list1{
  width: 100%;
}
.navbar {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 0.5rem 1rem;
  justify-content: space-between;
}

:where(.navbar, .sidebar) .nav-section {
  gap: 1rem;
}

:where(.navbar, .sidebar) :where(.nav-section, .nav-logo, .search-form) {
  display: flex;
  align-items: center;
}

:where(.navbar, .sidebar) :where(.logo-image, .user-image) {
  width: 32px;
  cursor: pointer;
  border-radius: 50%;
}
svg > path{
  fill:var(--text-color);
}

:where(.navbar, .sidebar) .nav-section .nav-button {
  border: none;
  height: 40px;
  width: 40px;
  justify-content: center;
    align-items: center;
    display: flex;
  cursor: pointer;
  background: none;
  border-radius: 50%;
}

:where(.navbar, .sidebar) .nav-section .nav-button:hover {
  background: var(--light-gray-color) !important;
}

:where(.navbar, .sidebar) .nav-button i {
  font-size: 1.5rem;
  display: flex;
  color: var(--black-color);
  align-items: center;
  justify-content: center;
}

:where(.navbar, .sidebar) .nav-logo {
  display: flex;
  gap: 0.5rem;
  text-decoration: none;
}

:where(.navbar, .sidebar) .nav-logo .logo-text {
  color: var(--black-color);
  font-size: 1.25rem;
}

.navbar .nav-center {
  gap: 0.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.navbar .search-form {
  flex: 1;
  height: 40px;
  max-width: 550px;
}

.navbar .search-form .search-input {
  width: 100%;
  height: 100%;
  font-size: 1rem;
  padding: 0 1rem;
  outline: none;
  color: var(--black-color);
  background: var(--white-color);
  border-radius: 3.1rem 0 0 3.1rem;
  border: 1px solid #2f2e2e5d;
}
.alia{
  justify-content: center; display: flex; align-items: center;
}

.navbar .search-form .search-input:focus {
  border-color: var(--primary-color);
}

.navbar .search-form .search-button {
  height: 40px;
  width: auto;
  padding: 0 1.25rem;
  border-radius: 0 3.1rem 3.1rem 0;
  border: 1px solid #2f2e2e4f;
  border-left: 0;
}

.navbar .nav-center .mic-button {
  background: 1px solid #2f2e2e;
  border: 1px solid #2f2e2e4f;
  
}

.navbar .nav-right .search-button {
  /* display: unset; */
}

.main-layout {
  display: flex;
  /* display: flex; */
    justify-content: center;
  overflow-y: auto;
  scrollbar-color: var(--bgbtnyt) transparent;
}

.main-layout .sidebar {
  width: 280px;
  overflow: hidden;
  padding: 0 0.7rem 0;
  background: var(--white-color);
}

.main-layout .sidebar .nav-left {
  display: none;
  padding: 0.5rem 0.3rem;
}

body.sidebar-hidden .main-layout .sidebar {
  width: 0;
  padding: 0;
}

.sidebar .links-container {
  padding: 1rem 0 2rem;
  overflow-y: auto;
  height: calc(100vh - 60px);
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.sidebar .links-container:hover {
  scrollbar-color: #a6a6a6 transparent;
}

.sidebar .link-section .link-item {
  display: flex;
  color: var(--black-color);
  white-space: nowrap;
  align-items: center;
  font-size: 0.938rem;
  padding: 0.37rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.sidebar .link-section .link-item:hover {
  background: var(--light-gray-color);
}

.sidebar .link-section .link-item i {
  font-size: 1.4rem;
  margin-right: 0.625rem;
}

.sidebar .link-section .section-title {
  color: var(--black-color);
  font-weight: 600;
  font-size: 0.938rem;
  margin: 1rem 0 0.5rem 0.5rem;
}

.sidebar .section-separator {
  height: 1px;
  margin: 0.64rem 0;
  background: var(--light-gray-color);
}

.main-layout .content-wrapper {
  /* padding: 0 1rem; hidden after side-navbar added @ 161020241750ist*/
  overflow-x: hidden;
  /* margin: 15px 0px 2px 54px; hidden after side-navbar added @ 161020241750ist*/
  width: 100%;
}
.content-wrapper{
  justify-content: center;
  display: flex;
}
.content-wrapper .category-list {
  display: flex;
  overflow-x: auto;
  gap: 0.75rem;
  padding: 0.75rem 0 0.7rem;
  scrollbar-width: none;
}

.category-list .category-button {
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.94rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  color: var(--black-color);
  padding: 0.4rem 0.75rem;
  background: var(--light-gray-color);
}

.category-list .category-button.active {
  color: var(--white-color);
  background: var(--black-color);
  pointer-events: none;
}

.dark-mode .category-list .category-button.active {
  filter: brightness(120%);
}

.category-list .category-button:not(.active):hover {
  background: var(--border-color);
}

.content-wrapper .video-list {
  display: grid; 
  gap: 1rem;
  padding: 1.25rem 0 4rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.video-list .video-card {
  text-decoration: none;
}
.video-card{
  
  border-radius: 10px;
  /* border: 1px solid black; */
  /* padding: 5px; */
  /* background-color: aliceblue; */
  /* filter: drop-shadow(4px 6px 8px black); */  
}

.video-list .video-card .thumbnail-container {
  position: relative;
}

.video-list .video-card .thumbnail {
  width: 100%;
  object-fit: contain;
  border-radius: 0.6rem;
  aspect-ratio: 16 / 9;
  background: var(--light-white-color);
}

.video-list .video-card .duration {
  position: absolute;
  right: 0.65rem;
  bottom: 0.8rem;
  color: #fff;
  font-size: 0.875rem;
  padding: 0 0.3rem;
  border-radius: 0.3rem;
  background: var(--overlay-dark-color);
}
.video-list .video-card .video-info {
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 0.5rem;
}
.video-info > div {
  font-size: 14px;
}

.video-list .video-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.video-list .video-card .title {
  font-size: 1rem;
  color: var(--black-color);
  font-weight: 600;
  line-height: 1.375;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.vdet{
  display:flex;
  text-align: right;
}

.video-list .video-card:hover .title {
  color: var(--primary-color);
}

.video-list .video-card p {
  font-size: 0.875rem;
  color: var(--secondary-color);
}

.video-list .video-card .channel-name {
  margin: 0.25rem 0 0.15rem;
}

/* Responsive media code for small devices */
@media (max-width: 768px) {
  .navbar .nav-center {
    display: none;
  }


  .main-layout .screen-overlay {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 15;
    width: 100%;
    height: 100vh;
    background: var(--overlay-dark-color);
    transition: 0.2s ease;
  }

  body.sidebar-hidden .main-layout .screen-overlay {
    opacity: 0;
    pointer-events: none;
  }

  .main-layout .sidebar {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 20;
    height: 100vh;
    transition: 0.2s ease;
  }

  body.sidebar-hidden .main-layout .sidebar {
    left: -280px;
  }

  .main-layout .sidebar .nav-left {
    display: flex;
  }
}

/* gandase chamkile de chamkile */

body {
  font-family: Afacad Flux;
  /* font-family: Arial, sans-serif; */
  /* background-color: var(--bg-color); */
  color: var(--text-color);
  margin: 0;
  /* padding: 20px; */
  transition: background-color 0.3s, color 0.3s;
}

.main-sodaa {
  display: flex;
  flex-direction: column;
  padding: 0px 15px 0px 15px;
  justify-content: center;
}

.video-container {
  flex: 1;
  padding: 20px 5px 0px 20px;
  /* background-color: var(--card-bg); */
  /* border-radius: 10px; */
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

iframe {
  width: 100%;
  height: 250px;
  border-radius: 10px;
}

.info-container {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.likes-views {
  display: flex;
  /* gap: 15px; */
}
#subscribersCount{
  color: #65718e;
}
#views{
  margin-bottom: 24px;    
}
.ml15 {
  margin-left: 15px;
}

.mr10 {
  margin-right: 5px;
}
.hidden{
  display: none;
}
.hw42 {
  width: 32px;
  height: 32px;
  font-size: 30px;
  /* background-color: red; */
}

.dbrx {
  /* display: flex; */
  /* background-color: red; */
  /* border-radius: 10px; */
  /* align-items: center; */
  color: var(--text-color);
  height: max-content;
  /* padding: 5px 10px; */
  font-size: 31px;
}

.channel-profile {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.channel-profile img {
  border-radius: 50%;
  margin-right: 15px;
  width: 50px;
  height: 50px;
}

.related-videos-container {
  /* margin-top: 20px; */
  /* background-color: var(--card-bg); */
  /* border-radius: 10px; */
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
  padding: 10px 10px 10px 0px;
}

.related-videos-container>h3 {
  padding: 10px;
  margin-bottom: 0;
}

#relatedVideos {
  padding: 10px;
}

.video-card {
  margin: 0 0 10px 0;
  border-radius: 5px;
  padding: 7px;
  display: flex;
  /* background-color: var(--card-bg); */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.video-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.related-videos .video-card img {
  width: 80px;
  height: 45px;
  margin-right: 10px;
  border-radius: 5px;
}

.video-thumb {
  width: 145px;
  border-radius: 9px;
  margin-right: 18px;
}

.video-title {
  /* margin-top: 7px;
  margin-bottom: 3px; */
  margin-bottom: 1px;
  font-weight: bold;
  font-size: 13px;
  white-space: nowrap;
  text-wrap: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* max-width: 200px; */
  /* या अपनी आवश्यकतानुसार */
  cursor: pointer;
  font-family: sans-serif;
}

.video-title:hover::after {
  content: attr(data-full-title);
  white-space: normal;
  display: block;
  position: absolute;
  border-radius: 10px;
  color: var(--text-color);
  background-color: var(--card-bg);
  padding: 5px;
  border: var(--card-bg);
  z-index: 1;
  max-width: 300px;
  /* होवर पर पूरा टाइटल दिखाने के लिए */
}

.video-duration {
  font-size: 13px;
  color: #888;
}

#fullDescription {
  /* display: none; */
  margin: 24px 0px 24px 0px;
}

a {
  text-decoration: none;
  color: #00abff;
}

.skeleton {
  width: 100%;
  height: 250px;
  background-color: #ddd;
  border-radius: 10px;
  animation: skeleton-loading 1.5s infinite linear;
}

@keyframes skeleton-loading {
  0% {
      background-color: #ddd;
  }

  50% {
      background-color: #ccc;
  }

  100% {
      background-color: #ddd;
  }
}

/* .theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  background-color: var(--card-bg);
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid #ccc;
} */

/* छोटे CSS क्लासेस */
.ml10 {
  margin-left: 10px;
}

.mtb0 {
  margin-top: 0px;
  margin-bottom: 0px;
}

.mb10 {
  margin-bottom: 10px;
}

.hod {
  display: var(--hideonwhite);
}

.how {
  display: var(--hideondark);
}

#lkic {
  width: 30px;
  height: 30px;
  margin-right: 0px;
}

#dlkic {
  width: 30px;
  height: 30px;
  margin-right: 0px;
}
/* ईनहेरिटेड फर्म गूगल। कॉम  */
.dbrx {
  display: none;
  /* display: flex; */
  align-items: center;
  background-color:var(--btn-bg);
  border-radius: 20px;
  padding: 0px 15px;
}

.mt20{
  margin-top: 20px;
}

.likes-container, .dislikes-container {
  display: flex;
  align-items: center;
  margin-right: 15px;
}
#description-container{
  background-color: var(--btn-bg);
  padding: 10px;
  border-radius: 10px;
}
#channelurl{
  text-decoration: none;
  display: flex;
  color: var(--text-color);
  align-items: center;
  cursor: pointer;
}

.like-icon {
  width: 24px;
  height: 24px;
  margin-right: 5px;
}

.wmx {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.dislikes-container {
  border-left: 1px solid #d3d3d3;
  padding-left: 15px;
}


/* Responsive Design for Mobile */
@media (min-width: 768px) {
  .main-sodaa {
      flex-direction: row;
      justify-content: center;
  }

  .video-container {
      max-width: 974px;
  }

  iframe {
      height: 474px;
  }

  .related-videos-container {
      width: 427px;
  }

  .hmc {
      height: 33px;
  }

  .wmx {
      width: max-content;
  }

  .csd {
      margin-left: 0px;
      height: 3px;
  }

  .likes-container {
      display: flex;
      /* background-color: red; */
      width: max-content;
      padding: 6px;
  }

  .dislikes-container {
      display: flex;
      /* background-color: red; */
      width: max-content;
      padding: 6px;
  }
}

@media (min-width: 1366px) and (min-height: 786px) {
  iframe {
      height: 550px;
  }
  
}

@media (max-width: 767px) {
  iframe {
      width: 100%;
      height: 220px;
  }

  .related-videos-container {
      width: 100%;
  }

  .related-videos .video-card img {
      width: 50px;
      height: 28px;
  }

  .video-card {
      flex-direction: row;
      align-items: flex-start;
  }

  .channel-profile {
      flex-direction: column;
      align-items: flex-start;
  }
  .likes-views{
      margin-top: 10px;
  }

  body{
      padding:0;
  }
  #description-container{
      word-wrap: break-word;
  }
  #views,#fullDescription{
      margin: 0;
  }
  #fullDescription{
    width: 100%;
  }
  #description-container{
    width: 100%;
  }
  .main-layout .content-wrapper{
    margin: 0;
    display: block;
  }
}

#toggleDescription {
  color: var(--text-color);
  width: 100%;
}
#predisc{
  text-wrap: balance;
}