* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #141414;
  color: white;
  display: flex;
  justify-content: center;
}

.app {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  text-align: center;
}

h1 {
  margin-bottom: 20px;
}

.card {
  background: #222;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 18px;
  background: #333;
}

.card h2 {
  margin: 14px 0 8px;
}

.card p {
  color: #ddd;
  line-height: 1.4;
}

#overview {
  font-size: 14px;
}

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

button {
  flex: 1;
  border: none;
  border-radius: 99999px;
  padding: 14px 10px;
  font-size: 16px;
  cursor: pointer;
  background: #333;
  color: white;
}

button:hover {
  background: #444;
}

.watchlist-btn {
  width: 100%;
  margin-top: 14px;
  background: #e50914;
}

#watchlist {
  margin-top: 20px;
  text-align: left;
}

.watchlist-item {
  background: #222;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.card {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.card.swipe-left {
  transform: translateX(-500px) rotate(-18deg);
  opacity: 0;
}

.card.swipe-right {
  transform: translateX(500px) rotate(18deg);
  opacity: 0;
}

.card.swipe-up {
  transform: translateY(-500px) scale(1.1);
  opacity: 0;
}

.buttons {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.buttons button {
  height: 64px;
  width: 64px;
  border-radius: 9999px;
  font-size: 26px;
  flex: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

button.no {
  background: #2f2f2f;
}

button.yes {
  background: #1db954;
}

button.super {
  background: #e50914;
}

.list-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.list-actions button {
  border-radius: 12px;
  padding: 12px 8px;
  font-size: 14px;
}

.watchlist {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.watchlist-card {
  display: flex;
  gap: 12px;
  background: #222;
  border-radius: 16px;
  padding: 10px;
  align-items: center;
}

.watchlist-card img {
  width: 70px;
  height: 105px;
  object-fit: cover;
  border-radius: 10px;
  background: #333;
}

.watchlist-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.watchlist-card p {
  margin: 0;
  color: #aaa;
  font-size: 14px;
}

.watchlist-card button {
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  font-size: 13px;
}

.stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
}

.stat-box {
  background: #222;
  border-radius: 14px;
  padding: 10px;
  flex: 1;
  font-size: 14px;
}

.extra-actions {
  margin-top: 14px;
}

.extra-actions button {
  width: 100%;
  background: #6c5ce7;
}

.search {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  background: #222;
  color: white;
}

.watchlist-card {
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
}

.hidden {
  display: none;
}

.modal-content {
  background: #222;
  border-radius: 22px;
  padding: 18px;
  max-width: 420px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content img {
  width: 100%;
  border-radius: 16px;
}

.close-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #333;
}

.trailer-btn {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #e50914;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.no-trailer {
  color: #aaa;
  font-size: 14px;
}