:root {
  --bg: #181818;
  --bg-alt: #222;
  --text: #eee;
}
body.light {
  --bg: #f0f0f0;
  --bg-alt: #fff;
  --text: #111;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}
.login-container {
  background: #222;
  padding: 2rem;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  text-align: center;
}
.login-container input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 5px;
}
.login-container button {
  padding: 10px;
  width: 100%;
  border: none;
  background-color: #f04e23;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}
header {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-alt);
}
nav {
  display: flex;
  justify-content: center;
  background: var(--bg-alt);
}
nav button {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--text);
  border: none;
  cursor: pointer;
}
nav button.active {
  border-bottom: 2px solid #f04e23;
}
#grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
  gap: 1rem;
  padding: 1rem;
}
.card {
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.card img {
  width: 100%;
  display: block;
}
.card .info {
  padding: 0.5rem;
  color: var(--text);
}
.card .fav {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
}
.controls input {
  padding: 0.5rem;
  width: 200px;
  border: none;
  border-radius: 4px;
}
.controls button {
  margin-left: 0.5rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}
