body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
  color: #222;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.hero {
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 8px;
}

.quiz-panel {
  margin-bottom: 36px;
}

.progress-wrap {
  margin-bottom: 16px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #ddd;
  border-radius: 999px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: steelblue;
  transition: width 0.25s ease;
}

.quiz-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.answers {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.answer-btn {
  border: 1px solid #ccc;
  background: #fff;
  padding: 14px 16px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
}

.answer-btn:hover {
  background: #f0f7ff;
}

.answer-btn.selected {
  background: steelblue;
  color: white;
  border-color: steelblue;
}

.slider-container {
  margin: 20px 0 24px;
}

.dual-slider-wrap {
  margin: 20px 0 24px;
  background: #f7f9fc;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  padding: 16px;
}

.dual-slider-title {
  display: block;
  font-weight: 600;
  margin-bottom: 16px;
}

.dual-slider-values {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-weight: 700;
  color: steelblue;
}

.dual-slider-minmax {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

.slider-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slider-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    steelblue 0%,
    steelblue var(--fill, 50%),
    #dde6ef var(--fill, 50%),
    #dde6ef 100%
  );
  outline: none;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 2px solid steelblue;
  cursor: pointer;
  box-shadow: none;
}

.slider-row input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: #dde6ef;
}

.slider-row input[type="range"]::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: steelblue;
}

.slider-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 2px solid steelblue;
  cursor: pointer;
  box-shadow: none;
}

.slider-value {
  min-width: 72px;
  text-align: center;
  font-weight: 700;
  color: steelblue;
}

.slider-help {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

.noUi-target {
  border-radius: 999px;
  border: 1px solid #c9d7e6;
  box-shadow: none;
  background: #dde6ef;
}

.noUi-connect {
  background: steelblue;
}

.noUi-horizontal {
  height: 10px;
}

.noUi-handle {
  border-radius: 50%;
  width: 18px !important;
  height: 18px !important;
  right: -9px !important;
  top: -5px !important;
  border: 2px solid steelblue;
  box-shadow: none;
}

.noUi-handle::before,
.noUi-handle::after {
  display: none;
}

.quiz-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quiz-buttons button,
#restartBtn {
  border: none;
  background: steelblue;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.quiz-buttons button:disabled {
  background: #9eb8d1;
  cursor: not-allowed;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.summary-box {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.12);
  line-height: 1.6;
}

#results {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 28px;
}

.movieCard {
  background: white;
  padding: 14px;
  border-radius: 10px;
  width: 220px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.hidden {
  display: none;
}

svg {
  margin-top: 18px;
  background: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(20, 20, 20, 0.92);
  color: white;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.axis-label {
  font-size: 13px;
  font-weight: bold;
}

.flow-note,
.chart-note {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

.legend-title {
  font-size: 13px;
  font-weight: 700;
}

.legend-label {
  font-size: 12px;
}

.funnel-label {
  font-size: 13px;
  font-weight: 600;
}

.funnel-value {
  font-size: 12px;
  fill: #333;
}