@font-face {
  font-family: "Home Video";
  src: url("../fonts/HomeVideo-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.film-roulette {
  zoom: 1.2;
}

.film-roulette h1 {
  font-family: "Home Video", var(--font-title);
  font-size: 56px;
  color: rgb(143, 74, 189);
  text-align: center;
}

.film-roulette .subtitle {
  text-align: center;
  color: var(--footer-text);
  margin-top: 0;
}

.filters {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 1.5rem 0 0;
}

.filter-group {
  flex: 0 0 auto;
}

.filter-group-genre {
  flex: 0 0 180px;
}


.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-family: var(--font-title);
}

.genre-pickers {
  display: flex;
  gap: 0.5rem;
}

.genre-picker {
  position: relative;
  flex: 1;
  min-width: 0;
}

.genre-picker-toggle,
.year-range input {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #e0d5d3;
  background: #fff;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.genre-picker-toggle {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.genre-picker-toggle:hover {
  border-color: var(--accent);
}

.genre-picker-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e0d5d3;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.genre-picker-list.hidden {
  display: none;
}

.genre-picker-list li {
  padding: 0.4rem 0.75rem;
  color: var(--text);
  cursor: pointer;
}

.genre-picker-list li:hover {
  background: #f9f3f3;
}

.genre-picker-list li.selected {
  background: var(--accent);
  font-weight: 600;
}

.year-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.year-range input {
  width: 90px;
}

#spin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  margin: -0.75rem auto 0;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  background: #c9a0e0;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.spin-button-label {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
}

.spin-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

#spin-button:hover {
  opacity: 0.85;
}

#spin-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.result {
  margin-top: 1.5rem;
  background: #f9f3f3;
  border-radius: var(--border-radius);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.result.hidden {
  display: none;
}

.result img {
  width: 140px;
  border-radius: 8px;
  flex-shrink: 0;
}

.result h2 {
  margin: 0 0 0.25rem;
  color: #3c3c3c;
  font-family: var(--font-title);
}

.result .meta {
  color: #3c3c3c;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.result a {
  color: #3c3c3c;
  font-weight: 600;
}

.overview-toggle {
  background: none;
  border: none;
  padding: 0;
  color: #aaa;
  font-weight: 600;
  font-family: var(--font-main);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}
