* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
}

.app { padding-bottom: 50px; }

.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 4%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}

.logo { 
  font-size: 28px; 
  font-weight: bold;
  color: #E50914;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header-right { display: flex; gap: 15px; align-items: center; }

.header-right input {
  padding: 8px 16px; 
  border-radius: 4px; 
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  width: 220px;
}

.header-right input::placeholder { color: rgba(255,255,255,0.6); }

.header-right button {
  padding: 8px 16px; 
  border-radius: 4px; 
  border: none; 
  cursor: pointer;
  background: #E50914;
  color: #fff;
  font-weight: 500;
}

.header-right button:hover { background: #f40612; }

.main-container { 
  display: flex; 
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

.sidebar {
  width: 240px; 
  padding: 20px;
  background: #141414;
  min-height: calc(100vh - 80px);
}

.sidebar h2 { 
  color: #E50914; 
  margin-bottom: 20px; 
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-group { margin-bottom: 20px; }

.filter-group label { 
  display: block; 
  margin-bottom: 8px; 
  color: #999; 
  font-size: 13px;
}

.filter-group select, .filter-group input {
  width: 100%; 
  padding: 10px; 
  border-radius: 4px; 
  border: none;
  background: #333;
  color: #fff;
  font-size: 14px;
}

.filter-group select:focus, .filter-group input:focus {
  outline: 2px solid #E50914;
}

.year-range { display: flex; gap: 8px; }

.quick-filters { margin-top: 30px; }

.quick-filters h3 { 
  color: #999; 
  margin-bottom: 12px; 
  font-size: 14px;
  text-transform: uppercase;
}

.quick-btn {
  display: block; 
  width: 100%; 
  padding: 12px; 
  margin-bottom: 8px;
  border-radius: 4px; 
  border: 1px solid #333; 
  background: transparent;
  color: #fff; 
  cursor: pointer; 
  text-align: left;
  font-size: 13px;
}

.quick-btn:hover { 
  border-color: #E50914; 
  background: rgba(229,9,20,0.1); 
}

.btn-primary, .btn-secondary {
  width: 100%; 
  padding: 12px; 
  margin-bottom: 10px; 
  border-radius: 4px;
  border: none; 
  cursor: pointer; 
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary { 
  background: #E50914; 
  color: #fff; 
}
.btn-primary:hover { background: #f40612; }

.btn-secondary { 
  background: #333; 
  color: #fff; 
}
.btn-secondary:hover { background: #444; }

.main-content { 
  flex: 1; 
  padding: 30px; 
  text-align: center; 
  background: #000;
}

.wheel-container { 
  position: relative; 
  display: inline-block; 
  margin: 20px 0;
}

#wheel { cursor: pointer; }

#spin-btn {
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%);
  padding: 20px 50px; 
  font-size: 22px; 
  font-weight: bold;
  border: none; 
  border-radius: 50px; 
  background: #E50914; 
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#spin-btn:hover { 
  transform: translate(-50%, -50%) scale(1.05); 
  background: #f40612;
}

#confetti {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 1000;
}

#count { 
  margin-top: 20px; 
  color: #666;
  font-size: 14px;
}

.result {
  margin-top: 40px; 
  padding: 30px; 
  background: #141414;
  border-radius: 8px; 
  display: inline-block; 
  text-align: left;
  max-width: 800px;
}

.result.hidden { display: none; }

.result img { 
  width: 180px; 
  border-radius: 4px; 
  float: left; 
  margin-right: 30px; 
}

.result-info { float: left; width: 500px; }

.type-badge {
  display: inline-block; 
  padding: 5px 12px; 
  background: #E50914;
  color: #fff; 
  border-radius: 3px; 
  font-size: 12px; 
  margin-bottom: 10px;
  text-transform: uppercase;
}

.result h2 { 
  font-size: 28px; 
  margin-bottom: 8px; 
  font-weight: 500;
}

.result p { 
  color: #999; 
  margin-bottom: 12px; 
  font-size: 14px;
  line-height: 1.5;
}

#seen-btn {
  padding: 12px 24px; 
  border-radius: 4px; 
  border: none;
  background: #E50914; 
  color: #fff; 
  font-weight: 600; 
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 15px;
}

#seen-btn:hover { background: #f40612; }

@media (max-width: 900px) {
  .main-container { flex-direction: column; }
  .sidebar { width: 100%; }
  .result img { width: 120px; }
  .result-info { width: 250px; }
}

.history {
  margin-top: 40px;
  padding: 20px;
  background: #141414;
  border-radius: 8px;
  text-align: left;
}

.history h3 {
  color: #E50914;
  margin-bottom: 15px;
  font-size: 16px;
  text-transform: uppercase;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
}

.history-item:hover {
  background: #222;
}

.history-item img {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 2px;
}

.history-item span {
  color: #fff;
  font-size: 14px;
}

.result-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.result-buttons button {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  background: #333;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.result-buttons button:hover {
  background: #444;
}

#trailer-btn { background: #E50914; }
#trailer-btn:hover { background: #f40612; }

.stats {
  color: #666;
  font-size: 13px;
  line-height: 1.8;
}

.quick-filters {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #333;
}
