/* General Styles */
body {
  font-family: Arial, sans-serif;
  background: #0f1724;
  color: #fff;
  margin: 20px;
}
nav {
  margin-bottom: 20px;
}
nav a {
  margin-right: 15px;
  text-decoration: none;
  color: #ff6b6b;
  font-weight: bold;
}
nav a:hover {
  color: #fff;
}
header h1 {
  color: #ff6b6b;
}
header p {
  font-size: 1.1em;
}
section h2 {
  color: #ff6b6b;
  margin-top: 30px;
}

/* Grid for genres */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 15px;
}
.card {
  background: #1e293b;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.card:hover {
  transform: scale(1.05);
}
.genre-card {
  font-size: 1.2em;
  font-weight: bold;
}
.movie-card {
  background: #1e293b;
  width: 6.5cm;            /* Slightly bigger than poster to fit text */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  margin: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
  cursor: pointer;
}

.movie-card:hover {
  transform: scale(1.05);
}

.movie-card img {
  width: 6cm;              /* Fixed square width */
  height: 6cm;             /* Fixed square height */
  object-fit: cover;
  margin-top: 5px;
  border-radius: 4px;
}

.movie-card p {
  margin: 8px 0;
  font-weight: bold;
  text-align: center;
  color: #fff;
  font-size: 1em;
}

.movie-card button {
  background: #ff6b6b;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  color: #fff;
  margin-bottom: 10px;
  cursor: pointer;
}

.movie-card button:hover {
  background: #ff4a4a;
}
.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  border: 1px solid #ff6b6b;
  padding: 10px 0;
  background: #1e293b;
  color: #ff6b6b;
  font-weight: bold;
  font-size: 1em;
  position: relative;
}

.marquee::before {
  content: attr(data-text);
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 16s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}


