@font-face {
  font-family: 'Black Future';
  src: url('./BlackFuture.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

.logo {
  font-family: 'Black Future', sans-serif;
  color: #FFCC00;
  font-size: 60px;
  text-transform: uppercase;
  margin-bottom: 0;
}

.baseline {
  color: #FFCC00;
  font-size: 11px;
  margin-top: -0.4em;
  font-family: "IBM Plex Sans", sans-serif; /* ou une autre police plus discrète */
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
}

body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

#search {
  width: 80%;
  max-width: 600px;
  padding: 15px;
  border: 2px solid #ffcc00;
  border-radius: 50px;
  font-size: 18px;
  background-color: #1e1e1e;
  color: #fff;
  outline: none;
  margin-bottom: 30px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#search:focus {
  border-color: #e0e0e0;
  box-shadow: 0 0 10px #ffcc00;
}

div {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

label {
  font-size: 18px;
  color: #e0e0e0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}

label:hover {
  color: #ffcc00;
}

input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

input[type="radio"]:checked {
  background-color: #ffcc00;
  border-color: #ffcc00;
}

ul#results {
  width: 80%;
  max-width: 800px;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

li {
  display: flex;
  flex-direction: row;
  background-color: #1e1e1e;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s, background-color 0.3s;
}

li:hover {
  background-color: #2c2c2c;
  transform: translateY(-5px);
}

img {
  width: 150px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-right: 2px solid #ffcc00;
}

.film-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.film-info strong {
  font-size: 22px;
  color: #ffcc00;
}

.film-info p {
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* Limitation à 4 lignes pour le résumé */
  line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.film-info em {
  color: #bbbbbb;
  font-style: italic;
}

@media screen and (max-width: 600px) {
  #search {
    font-size: 16px;
    padding: 12px;
  }

  ul#results {
    width: 90%;
  }

  .film-info {
    padding: 15px;
  }

  .film-info strong {
    font-size: 18px;
  }

  .film-info p {
    font-size: 14px;
  }
}
