/* General Reset */

:root {
  --primary: #6C4DF6;
  --primary-light: #eafaea;
  --secondary: #FF7D59;
  --dark: #2D3748;
  --light: #F8FAFC;
  --gray: #E2E8F0;
  --success: #48BB78;
  --warning: #ED8936;
}

.link{font-weight:bolder !important; font-size:14px !important; text-decoration:underline !important;}
.border-bottom-line{box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);border-bottom: 1px solid rgba(0, 100, 0, 0.3);}
/* Container */
.nutrition-facts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Shared Card Styles */
.nutrition-card,
.ingredients-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nutrition-card:hover,
.ingredients-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.left_header{
    display: flex;
  align-items: center;
}
.card-header {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--primary);
  color: white;
  justify-content:space-between;
}

.card-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.card-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Nutrition Card Specific */
.nutrition-grid {
  padding: 1.5rem;
}

.nutrition-section {
  margin-bottom: 1.5rem;
}

.nutrition-section:last-child {
  margin-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--dark);
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.section-title .icon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.nutrition-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nutrition-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray);
}

.nutrition-item:last-child {
  border-bottom: none;
}

.nutrient-name {
  font-weight: 500;
  color: var(--dark);
}

.nutrient-value {
  text-align: right;
  font-weight: 600;
  color: var(--primary);
  padding-right: 0.5rem;
}

.nutrient-unit {
  color: var(--dark);
  opacity: 0.7;
  font-size: 0.85rem;
}

/* Ingredients Card Specific */
.ingredients-content {
  padding: 1.5rem;
}

.ingredients-section {
  margin-bottom: 1.5rem;
}

.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ingredient-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray);
}

.ingredient-item:last-child {
  border-bottom: none;
}

.ingredient-bullet {
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 1.2rem;
  line-height: 1;
}

/* Ingredients Card Specific */
.ingredients-content {
  padding: 1.5rem;
}

.ingredients-section {
  margin-bottom: 1.5rem;
}

.ingredient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ingredient-chip {
  background: var(--primary-light);
  color: black;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}
.badge_collection{
  display: flex;
  gap: 5px;
}
/* Facts Section */
.facts-section {
  background: var(--primary-light);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.fact-text {
  line-height: 1.6;
  color: var(--dark);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .nutrition-facts-container {
    grid-template-columns: 1fr;
  }

  .nutrition-item {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .card-header {
    padding: 1rem;
  }

  .nutrition-grid,
  .ingredients-content {
    padding: 1rem;
  }

  .nutrition-item {
    grid-template-columns: 2fr 1fr;
  }

  .nutrient-unit {
    display: none;
  }
}
@media only screen and  (min-width:992px) and (max-width:1400px) {
  .rest_video{flex-direction:column;}
}


main.content-wrapper {
    display: flex;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Section Styling */
.left-section {
    /*flex: 2;
    margin-top: 25px;*/
}
.watch_container{
    max-width:calc((100vh - 56px - 24px - 136px)*(16/9));
    min-width:calc(480px*(16/9));
    margin:0 auto;
}
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

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

.video-details {
    margin-top: 20px;
}

.video-details h1 {
    font-size: 22px;
    margin-bottom: 10px;
}

.video-meta p {
    color: #666;
    font-size: 14px;
}

/* Right Section Styling (Suggested Videos) */
.right-section {
    flex: 1;
    width:95%;
}

.suggested-video {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-direction:row;
    position:relative;
}
.single_suggestion_box{display:flexbox;display:flex;flex-direction:row;}
.suggested-video img {
    width:100%;height:100%;object-fit:cover;background-color:#f2f2f2;border-radius:5px;
}
.suggested-video .thumbnail{margin-right:8px;height:94px;width:168px;flex:none;position:relative;}
.suggested-info {
    display: flex;
    flex-direction: column;
}

.suggested-info p {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.suggested-info .video_title {
    margin: 0 0 4px 0;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    overflow: hidden;
    display: block;
    max-height: 4rem;
    -webkit-line-clamp: 2;
    display: box;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: normal;
    color:#0f0f0f;
}
.secondary_details_inside,.secondary_details_inside .channel_metadata{display:flexbox;display:flex;flex-direction:column;}
.secondary_details_inside .channel_metadata,.secondary_details_inside .channel_metadata{flex-wrap:wrap;}
.secondary_details_inside .channel_metadata{
    font-size: 0.8rem;
    line-height: 1rem;
    font-weight: 400;
    overflow: hidden;
    display: block;
    color:#606060;
}
.secondary_details_inside .channel_metadata .detail_container{
    max-height: 1.8rem;
    -webkit-line-clamp: 1;
    display: flexbox;
    display: flex;
    text-align:left;

}
.secondary_details_inside .channel_metadata .channel_view_time{
    max-height: 1.8rem;
    -webkit-line-clamp: 1;
    display: box;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: normal;
}
.secondary_details_inside .channel_metadata .channel_name{
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;

}
.secondary_details_inside .channel_metadata .when_loaded::before{content: "•";margin: 0 4px;}
#watch_menu{position:absolute;top:10px;right:10px;}
#watch_menu .menu_item{
    flex-wrap: wrap;
    padding-left: 20px;
    font-size: 16px;
    display: flex;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}
#watch_menu .menu_item li{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A6AFF !important;
    padding: 10px !important;
    font-weight: normal;
    cursor:pointer;
}
#watch_menu .menu_item li.activate{
    text-decoration:underline;
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px; /* Set a max width for larger screens */
    height: 50px;
    border: 1px solid #d3d3d3;
    border-radius: 25px;
    background-color: white;
    padding: 0 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin:0 auto;
}

/* Search Input */
.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    padding:10px 15px;
    border-radius: 25px;
}

/* Search Button */
.search-button {
    background-color: #f8f8f8;
    border: none;
    outline: none;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button img {
    width: 25px;
    height: 25px;
}

.search-button:hover {
    background-color: #e8e8e8;
}

@media (max-width: 480px) {
    .search-container {
        width: 100%; /* Full width on small screens */
    }

    .search-input {
        font-size: 14px; /* Slightly smaller text for mobile devices */
    }
}

/* Media Query for Smaller Screens */
@media (max-width: 768px) {
    main.content-wrapper {
        flex-direction: column;
    }

    .right-section {
        margin-top: 20px;
    }

    .suggested-video img {
        width: 100px;
        height: 60px;
    }

    .search-container {
        width: 90%; /* Shrinks search box on tablets */
    }
}
.video_description{
    margin-top: 50px;
    background-color: #f2f2f2;
    padding: 10px;
    border-radius: 10px;
    border:1px solid #ccc;
}
.video_description .desc_title{font-size:22px;padding-bottom:15px;}
.watch_header{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100px;flex-direction:column;}
.watch_header .search-form{width:100%;position:relative;max-width:600px;}

@media only screen and  (min-width:980px) and (max-width:1279px) {
    .watch_container{min-width:auto;}
    .suggested_window, .transcript_window, .history_window{width:350px;}
    .watch100-more{width:calc(100% - 350px);}
}
@media only screen and  (min-width:480px) and (max-width:979px) {
    .watch_container{min-width:auto;}
    .suggested_window, .transcript_window, .history_window,.watch100-more{width:100%;}
    .suggested_window, .transcript_window, .history_window{padding:25px;min-height:auto;}
    .suggested-video img{width:100%;height:100%;}
}
@media only screen and  (min-width:320px) and (max-width:639px) {
    .watch_container{min-width:auto;}
    .suggested_window, .transcript_window, .history_window,.watch100-more{width:100%;}
    .suggested_window, .transcript_window, .history_window{padding:25px;min-height:auto;}
    .suggested-video img{width:100%;height:100%;}
    .watch100-more{padding:0;}
    iframe{border-radius:0;}
    .video-details{padding:0 25px;}
    .video_description{margin-top:15px;padding:10px 25px;}
}
@media only screen and  (min-width:320px) and (max-width:425px) {
    .video-details h2{font-size:16px;}
    .video-meta p{font-size:12px;}
    .video_description{font-size:14px;box-shadow:0px 4px 8px rgba(0, 0, 0, 0.5);border-radius:10px 10px 0 0;}
    .video_description .desc_title{font-size:18px;}
    .suggested-video .thumbnail{height:70px;width:125px;}
    .video-details,.suggested_window, .transcript_window, .history_window{padding:10px;}
    .suggested-info .video_title{font-size:0.8rem;line-height:1rem;}
}

