/* GENERAL PAGE STYLING */
body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 20px;
}

h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

a {
  color: #0077cc;
}

/* BACK BUTTON */
#back-button {
  padding: 10px 20px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 20px;
}

#back-button:hover {
  background: #005fa3;
}

/* SHOW SEARCH BAR */
#show-search {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* SHOW LIST GRID */
#show-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* SHOW CARD */
.show-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.show-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 18px rgba(0,0,0,0.15);
}

.show-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.show-card h2 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

/* EPISODE VIEW GRID */
#root {
  background-color: #ffffff;
  color: black;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 20px;
  margin-top: 20px;
}

/* EPISODE CARD */
.drama-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.drama-card:hover {
  transform: translateY(-5px);
}

.small-card {
  border: 1px solid #0077cc;
  background: #e9f3ff;
  width: 100%;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.drama-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* EPISODE SEARCH + SELECTORS */
#episode-select,
#show-select,
#search-input {
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

#search-count {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}
