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

body {
  font-family: system-ui, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: #666;
  font-size: 0.95rem;
}

.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.search-bar input {
  width: 100%;
  max-width: 480px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: #555;
}

.status {
  text-align: center;
  padding: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.status.hidden {
  display: none;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.movie-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: transform 0.15s, border-color 0.15s;
  cursor: pointer;
}

.movie-card:hover {
  transform: translateY(-3px);
  border-color: #bbb;
}

.movie-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  background: #eee;
}

.movie-card .card-info {
  padding: 0.6rem 0.75rem;
}

.movie-card .card-title {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card .card-year {
  font-size: 0.75rem;
  color: #888;
}

.poster-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.05em;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
}

.card-type {
  font-size: 0.7rem;
  font-weight: 500;
  background: #f0f0f0;
  color: #555;
  padding: 1px 6px;
  border-radius: 4px;
}

.skeleton-poster {
  width: 100%;
  aspect-ratio: 2/3;
  background: #e8e8e8;
}

.skeleton-line {
  height: 10px;
  background: #e8e8e8;
  border-radius: 4px;
  margin-top: 6px;
}

.skeleton-line.short {
  width: 50%;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #666;
}

.filter-group select {
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  outline: none;
}

.filter-group select:focus {
  border-color: #555;
}

.filter-group input[type="range"] {
  width: 100%;
  cursor: pointer;
  accent-color: #555;
}