/* ===== Controls Container ===== */
.controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px auto;
  max-width: 800px;
  background: #eee; /* Light gray background */
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.hidden {
  display: none !important;
}

/* Row styling to ensure black text visibility */
.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #000000; /* Force text to black */
}

.control-row label {
  min-width: 140px;
  font-weight: 700; /* Bold for visibility */
  color: #000000; /* Black text */
}

#show-count, #episode-count {
  font-weight: bold;
  color: #000000; /* Black text for "Found X shows" */
  margin-left: 10px;
}

/* Inputs and Selects */
.control-row input,
.control-row select {
  flex: 1;
  height: 40px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #333; /* Darker border */
  background-color: #fff;
  color: #000; /* Black text inside inputs */
  font-size: 1rem;
}

/* ===== Grid & Content ===== */
#root {
  padding: 20px;
}

#episodes-container,
#shows-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.show-card, .episode-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.show-card h2, .episode-card h3 a {
  color: #1a73e8;
  cursor: pointer;
  text-decoration: none;
}

.show-card h2:hover, .episode-card h3 a:hover {
  text-decoration: underline;
}

.show-card img, .episode-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* Header & Navigation ===== */
header {
  text-align: center;
  padding: 20px;
  background-color: #cad5e0;
  color: #110f0f;
}

#back-to-shows {
  padding: 10px 20px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 10px;
}

/* ===== Footer Styling ===== */
.main-footer {
  margin-top: 40px;
  padding: 40px;
  border-top: 3px solid #333;
  text-align: center;
  font-size: 1.8rem; 
  font-weight: bold;
  background-color: #f4f4f4;
  color: #000;
}

.main-footer a {
  color: #1a73e8;
  text-decoration: underline;
}


/*- - In style.css styling made to display episode cards. 


/*- - In style.css styling made to display episode cards. 

/*- - Level -500 modification done in style.css