/* Custom styling for images to ensure they are responsive */
.card-img-small {
  width: 100%;
  height: auto;
}

/* Styling for dark comment title */
.comment-title {
  color: #343a40; /* Dark gray color for a subtle yet dark appearance */
  font-weight: 600; /* Adds boldness */
  text-transform: uppercase; /* Optional: makes the text all uppercase */
  margin-bottom: 8px; /* Adds space below the title */
  letter-spacing: 0.5px; /* Slight letter spacing for a clean look */
}


/* Custom styling for alert/message section */
.alert-message {
  background-color: #444;
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.alert-message p {
  margin: 0;
  flex: 1;
}

.alert-message .close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Ad space styling */
.ad-space {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
}

.script-container {
  text-align: center;
}

.small-container {
  width: 200px;
  height: auto;
  overflow: hidden;
  margin: 0 auto;
}

.select {
  background-color: white;  /* Adjust if necessary */
  color: black;
}

/* Card styling */
.movie-card {
  height: 100%; /* Ensures all cards are of equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Image styling */
.movie-card img {
  height: 200px; /* Adjust the height for uniformity */
  object-fit: cover;
  border-radius: 0.25rem 0.25rem 0 0; /* Consistent rounded corners */
}

/* Title styling */
.movie-title {
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Truncate long titles */
}

/* Button styling */
.movie-card .btn {
  font-size: 0.9rem;
}


/* Movie Card */
.movie-card {
  max-width: 850px;
  margin: 0 auto;
}

.movie-card img {
  height: 250px;
  object-fit: cover;
}

.movie-title {
  font-size: 18px;
}

.genre-info {
  font-size: 14px;
}

.description-text {
  font-size: 12px;
  max-height: 120px;
  overflow: hidden;
}

/* Parts Section */
.parts-card {
  max-width: 350px;
  margin: 0 auto;
}

.part-item {
  font-size: 14px;
}

.recommended-movies h5 {
  font-weight: bold;
}

.recommended-movie-card img {
  height: 180px;
  object-fit: cover;
}

.recommended-movie-card .card-body {
  padding: 1rem;
}

.comments-card {
  max-width: 350px;
  margin: 0 auto;
}

.comment-title {
  font-size: 16px;
}

.comment-item {
  font-size: 14px;
}

/* Unique Styling for Horizontal Movie Cards */
.scrollable-card {
  flex: 0 0 calc(33.33% - 15px); /* Default: 3 cards per row */
  max-width: calc(33.33% - 15px); /* Default: Max width for each card */
  margin-right: 15px; /* Space between cards */
  background-color: #1e1e1e; /* Dark background */
  border-radius: 12px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  overflow: hidden; /* Clip content inside rounded edges */
  text-decoration: none; /* Remove underline */
}

.scrollable-card img {
  border-top-left-radius: 12px; /* Rounded corners for the top */
  border-top-right-radius: 12px;
  width: 100%; /* Fit image inside the card */
  height: auto;
}

.scrollable-card .card-body {
  padding: 10px; /* Padding inside the card body */
  color: #fff; /* White text color */
  text-align: center; /* Center text */
}

.scrollable-card .card-title {
  font-size: 16px; /* Slightly larger text */
  font-weight: bold; /* Bold titles */
}

/* Adjust for smaller screens (e.g., mobile) */
@media (max-width: 576px) {
  .scrollable-card {
      flex: 0 0 calc(50% - 10px); /* For 2 cards per row */
      max-width: calc(50% - 10px);
  }
}

/* Adjust for medium screens (e.g., tablets) */
@media (min-width: 577px) and (max-width: 991px) {
  .scrollable-card {
      flex: 0 0 calc(25% - 10px); /* For 4 cards per row */
      max-width: calc(25% - 10px);
  }
}

/* Adjust for larger screens (e.g., PCs) */
@media (min-width: 992px) {
  .scrollable-card {
      flex: 0 0 calc(20% - 10px); /* For 5 cards per row */
      max-width: calc(20% - 10px); /* Reduced size for larger screens */
  }
}

/* Horizontal Scroll Container */
.scroll-container {
  display: flex;
  flex-wrap: nowrap; /* Disable wrapping */
  overflow-x: auto; /* Horizontal scrolling */
  scroll-behavior: smooth; /* Smooth scrolling */
  padding-bottom: 5px; /* Space for scrollbar */
}

.scroll-container::-webkit-scrollbar {
  height: 8px; /* Height of scrollbar */
}

.scroll-container::-webkit-scrollbar-thumb {
  background-color: #888; /* Dark scrollbar thumb */
  border-radius: 4px; /* Rounded corners */
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Darker on hover */
}

.scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1; /* Scrollbar track */
}









