cat > ~/Desktop/movie-log/style.css << 'EOF'
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #0f0f0f; color: #fff; font-family: sans-serif; }

header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: #1a1a1a; border-bottom: 2px solid #e50914;
}
h1 { font-size: 1.3rem; }

.btn-primary {
  background: #e50914; color: #fff; border: none;
  padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.9rem;
}
.btn-secondary {
  background: #333; color: #fff; border: none;
  padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.9rem;
}

main { padding: 16px; }

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

.movie-card {
  position: relative; border-radius: 8px; overflow: hidden;
  background: #1a1a1a; cursor: pointer;
}
.movie-card img { width: 100%; display: block; aspect-ratio: 2/3; object-fit: cover; }

.badge {
  position: absolute; top: 6px; left: 6px;
  background: rgba(229,9,20,0.85); color: #fff;
  font-size: 0.6rem; padding: 2px 6px; border-radius: 4px;
}

.info {
  padding: 6px 8px; background: #1a1a1a;
}
.title { font-size: 0.75rem; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { font-size: 0.65rem; color: #aaa; margin-top: 2px; }

.empty-msg { text-align: center; color: #555; margin-top: 60px; font-size: 0.95rem; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal.hidden { display: none; }
.modal-content {
  background: #1a1a1a; border-radius: 12px; padding: 24px;
  width: 90%; max-width: 420px; display: flex; flex-direction: column; gap: 12px;
  max-height: 90vh; overflow-y: auto;
}
.modal-content h2 { font-size: 1.1rem; }

.modal-content input, .modal-content select {
  background: #2a2a2a; border: 1px solid #444; color: #fff;
  padding: 10px; border-radius: 6px; font-size: 0.9rem; width: 100%;
}

.search-results { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.result-item {
  display: flex; align-items: center; gap: 10px;
  background: #2a2a2a; border-radius: 6px; padding: 6px; cursor: pointer;
}
.result-item:hover { background: #333; }
.result-item img { width: 36px; height: 54px; object-fit: cover; border-radius: 4px; }
.r-info { font-size: 0.85rem; }
.r-year { color: #aaa; font-size: 0.75rem; }

.selected-movie {
  display: flex; align-items: center; gap: 10px;
  background: #2a2a2a; border-radius: 6px; padding: 8px;
}
.selected-movie.hidden { display: none; }
.selected-movie img { width: 40px; height: 60px; object-fit: cover; border-radius: 4px; }

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
EOF

.detail-top {
  display: flex; gap: 16px; align-items: flex-start;
}
.detail-top img {
  width: 100px; min-width: 100px; border-radius: 6px; object-fit: cover;
}
.detail-info { display: flex; flex-direction: column; gap: 8px; }
.detail-info h2 { font-size: 1.1rem; }
.detail-info p { font-size: 0.85rem; color: #ccc; }
.btn-danger {
  background: #333; color: #ff4444; border: none;
  padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.9rem;
}

.manual-poster-section {
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid #333; padding-top: 10px;
}
.manual-label { font-size: 0.8rem; color: #aaa; }
