body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
:root {
  --bg:#111;
  --text:#fff;
  --card:#222;
}
.light {
  --bg:#fff;
  --text:#000;
  --card:#ddd;
}
.slider img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}
header {
  padding:20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.grid {
  margin:20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.movie {
  background: var(--card);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}
.movie img {
  width: 100%;
  border-radius: 10px;
}
.modal {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.7);
  display:flex;
  justify-content:center;
  align-items:center;
}
.modal-content {
  background: var(--card);
  padding:20px;
  border-radius:10px;
  width:90%;
  max-width:400px;
}
.hidden{display:none;}
#ratingBar {
  height:10px;
  background:#555;
  border-radius:5px;
  margin:10px 0;
  overflow:hidden;
}
#ratingBar div {
  height:100%;
  background: gold;
  width:0%;
}
