body {
  font-family: Arial, sans-serif;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f0f0f0;
}

h1 {
  text-align: center;
  color: #333;
  font-size: 24px;
}

#searchForm {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#searchInput {
  width: 70%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

#searchButton {
  padding: 8px 16px;
  font-size: 14px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

#resultList {
  list-style-type: none;
  padding: 0;
}

.result-container {
  display: flex;
  margin-bottom: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  max-height: 150px;
}

.result-poster {
  width: 100px;
  height: 150px;
  object-fit: cover;
}

.result-info {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.result-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-year {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.result-plot {
  font-size: 12px;
  color: #333;
  margin-bottom: 5px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.result-rating {
  display: flex;
  align-items: center;
  font-size: 12px;
}

.imdb-icon {
  color: #f5c518;
  margin-right: 3px;
}

.imdb-score {
  font-weight: bold;
}

.button-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  background-color: #f9f9f9;
}

.action-button {
  width: 30px;
  height: 30px;
  background-color: #e0e0e0;
  border: none;
  border-radius: 4px;
  margin-bottom: 3px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}

.action-button:hover {
  background-color: #d0d0d0;
}

.watch-button {
  width: 60px;
  height: 30px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.watch-button:hover {
  background-color: #45a049;
}

#embedContainer {
  display: none;
  margin-top: 15px;
}

#embedContainer iframe {
  width: 100%;
  height: 337px;
  border: none;
}

#episodeSelector {
  display: none;
  margin-top: 10px;
}

#seasonSelect, #episodeSelect {
  margin-right: 10px;
  padding: 5px;
  font-size: 12px;
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .result-container {
    flex-direction: row;
    max-height: none;
  }

  .result-poster {
    width: 80px;
    height: 120px;
  }

  .result-info {
    padding: 5px;
  }

  .result-title {
    font-size: 14px;
  }

  .result-year, .result-plot, .result-rating {
    font-size: 11px;
  }

  .button-container {
    flex-direction: row;
    justify-content: space-around;
    padding: 5px 0;
  }

  .action-button {
    margin-bottom: 0;
    margin-right: 3px;
  }

  .watch-button {
    width: auto;
    padding: 0 10px;
  }
}