/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 12px;
  color: #333;
}

.logo{
  margin-left: 2px;
  margin-top: 10px;
}

/* Home Page */
home-page {
  display: block;
  max-width: 100%;
}

/* Main Featured Section */
featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: #f3f4f6; /* Tailwind's bg-gray-100 */
  color: #4b5563; /* Tailwind's text-gray-700 (for fullText) */
  border: 1px solid #d1d5db; /* Tailwind's border-1 */
  border-radius: 0.5rem; /* Tailwind's rounded-lg */
  max-width: 1280px; /* Tailwind's max-w-screen-xl */
  margin: 0 auto;
}

/* homepage layout */
featured > div.flex-featured {
  display: flex;
  justify-content: center;
}

featured img {
  width: 100%;
  max-width: 1024px; /* Tailwind's max-w-[1024px] */
  height: auto;
  border-radius: 0.5rem; /* Tailwind's rounded-lg */
}

/* Main Info Section */
main-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem; /* Tailwind's space-y-4 */;
}

main-info h4 {
  font-size: 1.5rem; /* Tailwind's text-2xl */
  font-weight: 600; /* Tailwind's font-semibold */
  color: #374151; /* Tailwind's text-gray-800 */
}

icon-grp {
  display: flex;
  align-items: center;
  gap: 1rem; /* Tailwind's space-x-4 */
}

/*
icon-grp div {
  width: 6rem; 
  height: 6rem; 
  display: flex;
  align-items: center;
  justify-content: center;
}*/

icon-grp i {
  font-size: 3rem; /* Tailwind's text-6xl */
  color: #2563eb; /* Tailwind's text-blue-600 */
}

icon-grp i:hover{
  color: #1d4ed8;
}

.more-info {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Tailwind's space-x-2 */
  padding: 0.5rem 1rem; /* Tailwind's px-4 py-2 */
  background-color: #2563eb; /* Tailwind's bg-blue-600 */
  color: #fff;
  border-radius: 0.375rem; /* Tailwind's rounded-md */
  cursor: pointer;
  border: none;
}

.more-info:hover {
  background-color: #1d4ed8; /* Tailwind's hover:bg-blue-700 */
}

.more-info i {
  font-size: 1.25rem; /* size of the plus icon */
  color: #fff;
}

a {
  display: block; 
  text-decoration: none;
}

p {
  font-size: 1rem; /* Tailwind's text-base */
  /* Tailwind's line-clamp-3 */
  display: -webkit-box;
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical;
  overflow: hidden; /* Ensures overflow is clipped */
  text-overflow: ellipsis; /* Adds ellipsis for clipped text */
  line-height: 1.5em; /* Set the height of each line */
  white-space: normal; /* Allow normal wrapping */
}

/* Featured List Section */
 featured-list h2{
  margin-bottom: 0;
 }
 
 featured-list h3{
  padding-left: 1rem;
  margin: 0;
 }
 
 featured-list > div{
  padding-left: 2rem;
  padding-right: 1rem;
}

featured-list > div > div{
  position: relative;
  padding: 1rem 0; /* Adjust padding as needed */
}

featured-list button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem; /* Tailwind's p-2 */
  background-color: #d1d5db; /* Tailwind's bg-gray-300 */
  border-style: solid;
  border-radius: 0.375rem; /* Tailwind's rounded */
  cursor: pointer;
  z-index: 10;
}

.left-button {
  left: 0; /* Position the button on the left */
}

.left-button:hover {
  background-color: #eaecf0; 
}

.right-button {
  right: 0; /* Position the button on the right */
}

.right-button:hover {
  background-color: #eaecf0; 
}

featured-list .flex {
  display: flex;
  align-items: center;
  gap: 1rem; /* Tailwind's gap-4 */
  overflow-x: auto; /* Make the container scrollable */
  scroll-snap-type: x mandatory; /* Enable snap behavior */
  width: 100%;
}

featured-list a {
  flex-shrink: 0; /* Ensure items don’t shrink */
  border: 2px solid black; /* Tailwind's border-2 border-solid border-black */
  border-radius: 0.25rem; /* Optional for rounded edges */
}

featured-list img {
  object-fit: cover; /* Keep images proportionate */
  padding: 0.5rem; /* Tailwind's p-2 */
}

/* series view layout */
.info-selector {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Tailwind's space-y-6 */
}

/* top Row: series info button + dropdown */
.top-row-info-selector {
  display: flex;
  align-items: center; /* Vertically align items */
  gap: 1rem; /* Tailwind's space-x-4 */
}

.series-info-button {
  background-color: #2563eb; /* Tailwind's bg-blue-600 */
  color: white;
  padding: 0.5rem 1rem; /* Tailwind's px-4 py-2 */
  border-radius: 0.375rem; /* Tailwind's rounded-md */
  border: none;
  cursor: pointer;
}

.series-info-button:hover {
  background-color: #1d4ed8; /* Tailwind's hover:bg-blue-700 */
}

/* Season Selector Dropdown */
.season-selector {
  border: 1px solid #d1d5db; /* Tailwind's border-gray-300 */
  border-radius: 0.375rem; /* Tailwind's rounded-md */
  padding: 0.5rem 1rem; /* Tailwind's px-4 py-2 */
}

.season-selector:focus {
  box-shadow: 0 0 0 3px #93c5fd; /* Tailwind's focus:ring focus:ring-blue-300 */
  border-color: #2563eb; /* Optional for a focused border */
}


/* series info section */
.series-info-container {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Tailwind's space-y-4 */
  font-size: 1rem; /* Tailwind's text-base */
  color: #4b5563; /* Tailwind's text-gray-700 (for fullText) */
}

/* Producers and Credits */
.series-info-container > div > span:first-child {
  font-weight: 600; /* Tailwind's font-semibold */
  color: #1f2937; /* Tailwind's text-gray-800 */
}

.series-info-container > div > span:last-child,
.series-info-container p:last-child {
  color: #6b7280; /* Tailwind's text-gray-600 */
}

/* Episode List Container */
episode-list {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  gap: 4px; /* Consistent spacing between items */
  padding: 24px; /* Padding around the entire container */
  max-width: 1280px; 
}

/* Episode Item */
episode-item {
  display: grid;
  grid-template-columns: auto 1fr; /* Image on the left, text on the right */
  align-items: center; /* Align image and content vertically */
  gap: 16px; /* Space between image and text */
  padding: 16px; /* Internal padding for the box */
  background-color: #f3f4f6; /* Light gray background for each item */
  border: 1px solid #d1d5db; /* Light gray border */
  border-radius: 0.5rem; /* Slight rounding for visual separation */
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* Subtle shadow */
  max-width: 1280px; 
}

/* Add consistent spacing between episode items */
episode-item:not(:first-child) {
  margin-top: 16px;
}

/* Episode Image */
episode-item img {
  width: 200px; /* Fixed image width */
  height: 108px; /* Fixed image height */
  border-radius: 0.25rem; /* Slight rounding for the image */
  object-fit: cover; /* Maintain aspect ratio */
}

/* Episode Info */
episode-item div {
  display: flex;
  flex-direction: column; /* Stack title, description, and actions vertically */
  gap: 8px; /* Consistent spacing between content */
  color: #1f2937; /* Dark gray text */

}

/* Episode Title */
episode-item h3 {
  font-size: 1.125rem; /* 18px font size */
  font-weight: 600; /* Semi-bold for emphasis */
  margin: 0; /* Remove default margins */
}

/* Episode Description */
episode-item p {
  font-size: 1rem; /* 14px font size */
  color: #4b5563; /* Medium gray text */
  margin: 0; /* Remove default margins */
  display: -webkit-box; /* Enable truncation */
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical; /* Truncate text vertically */
  overflow: hidden; /* Hide overflow text */
  text-overflow: ellipsis; /* Add ellipsis for clipped text */
}

/* Add hover effect for episode item */
episode-item:hover {
  background-color: #e5e7eb; /* Slightly darker gray background */
  /* transition: background-color 0.2s ease-in-out; Smooth hover transition */
}

/* season info section */
.season-info-container {
  gap: 1rem; /* Tailwind's space-y-4 */
  font-size: 1rem; /* Tailwind's text-base */
 /* color: #4b5563;  Tailwind's text-gray-700 (for fullText) */
}

/*season view h3*/
episode-list h3{
  margin: 0;
  padding: 16px;
}

/* Producers and Credits */
/* .season-selector:focus > div > span:first-child {
  font-weight: 600; 
  color: #1f2937;
} */

/*Movie View*/
movie-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem; /* Spacing between columns */
  padding: 2rem; /* Padding around the page */
  max-width: 1280px; /* Limit maximum width */
}

/* movie Iframe */
movie-view iframe {
  grid-column: span 1;
  width: 100%; /* Take full width */
  height: 500px; /* Fixed height for video */
  border: none; /* Remove iframe border */
  border-radius: 0.5rem; /* Rounded corners */
}

/* Episode Information */
div-info {
  display: flex;
  flex-direction: column; /* Stack content vertically */
  gap: 1rem; /* Spacing between elements */
  background-color: #f3f4f6; /* Light gray background */
  padding: 1.5rem; /* Internal padding */
  border: 1px solid #d1d5db; /* Light gray border */
  border-radius: 0.5rem; /* Rounded corners */
}

/* Episode Title */
div-info h2 {
  font-size: 1.5rem; /* Tailwind's text-2xl */
  font-weight: 300; /* Semi-bold */
  color: #1f2937; /* Dark gray text */
}

/* Episode Description */
div-info p {
  font-size: 1rem; /* Tailwind's text-base */
  color: #4b5563; /* Medium gray text */
  margin: 0; /* Remove default margins */
}

/* Episode Credits and Producers */
div-info span {
  display: flex;
  flex-wrap: wrap; /* Allow multiple producers to wrap */
  gap: 0.5rem; /* Spacing between producers */
  color: #4b5563; /* Medium gray text */
}

/*for individual episode view*/
/* Individual Episode View */
.episode-style {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two-column layout for desktop */
  gap: 2rem; /* Spacing between columns */
  padding: 2rem; /* Padding around the page */
  max-width: 1280px; /* Limit maximum width */
  /*margin: 0 auto; Center the view horizontally */
}

/* Episode Iframe */
.episode-style iframe {
  grid-column: span 2; /* Full width for desktop */
  width: 100%; /* Take full width */
  height: 500px; /* Fixed height for video */
  border: none; /* Remove iframe border */
  border-radius: 0.5rem; /* Rounded corners */
}


.episode-list-indiv-ep {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  gap: 15px; /* Consistent spacing between items */
}

/* Season Title */
.episode-style h2 {
  font-size: 1.25rem; /* Tailwind's text-xl */
  font-weight: 600; /* Semi-bold */
  color: #1f2937; /* Dark gray text */
}

@media (min-width: 768px) {
  featured {
    grid-template-columns: 1fr 1fr; /* Tailwind's md:grid-cols-2 */
  }
}

@media (max-width: 768px) {
  .episode-style {
    grid-template-columns: 1fr; /* Single-column layout for mobile */
    gap: 1rem; /* Reduce spacing on mobile */
    padding: 1rem; /* Reduce padding on mobile */
  }

  .episode-style iframe {
    grid-column: 1; /* Stay within the single column */
    height: 300px; /* Reduce height for mobile */
  }

  /* Stack episode list and episode info vertically on mobile */
  .episode-list-indiv-ep,
  div-info {
    width: 100%; /* Ensure both sections take full width */
  }

  .episode-list-indiv-ep {
    order: 2; /* Keep episode list first */
    margin-bottom: 1rem; /* Add margin below the episode list for spacing */
  }

  div-info {
    order: 1; /* Move info below the episode list */
  }

  .movie-view iframe {
    gap: 1rem; /* Reduce spacing on mobile */
    padding: 1rem; /* Reduce padding on mobile */
  }

  .movie-view iframe {
    height: 300px; /* Reduce height for mobile */
  }

}