/* Reset & Basic Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #121212;
  background-image: url("https://i.pinimg.com/736x/fb/4c/f0/fb4cf0a40df667fa812922b54e26f857.jpg");
  color: #fff;
}


/* Optional dark overlay on header */
.header-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 10px;
}

/* Main content background (below header) */
.main-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 2rem;
  background-color: rgba(0,0,0,0.6); /* different from header */
  padding: 1rem;
  border-radius: 10px;
}

/* Body background */
body {
  background-color: rgba(0,0,0,0.6);
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Top-right Navigation */
nav {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.6); /* transparent */
  padding: 10px 20px;
  border-radius: 10px;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* Header Section Full-Width with Overlay */
.page-header {
  width: 100%;
  height: 500px; /* adjust height as needed */
  background-image: url('https://i.pinimg.com/originals/e0/d1/ec/e0d1ecb269f4417b4144614dcd7da4f7.gif'); /* your header image */
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-overlay {
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black overlay */
  color: #fff;
  text-align: center;
  padding: 20px 40px;
  border-radius: 10px;
}

.header-overlay h1 {
  margin: 0 0 10px 0;
  font-size: 2rem;
}

.header-overlay p {
  margin: 0;
  font-size: 1rem;
  color: #ddd;
}

/* Container for two columns */
.container {
  display: flex;
  padding: 0 20px 20px 20px;
  gap: 30px;
}

/* Left Column */
.left-column {
  flex: 2;
}

/* Right Column */
.right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Top Favorites Grid */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.movie-card {
  background-color: #222;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.movie-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 5px;
}

.movie-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* Top 4 Favorites */
.top-favorites {
  margin: 20px;
}

.favorites-grid {
  display: flex; /* Use flexbox for easier sizing and scrolling if needed */
  gap: 15px;     /* space between movies */
  overflow-x: auto; /* allows horizontal scrolling if too many items */
  padding-bottom: 10px;
}

.movie-card {
  flex: 0 0 auto; /* prevent shrinking, keep original width */
  width: 120px;   /* set your desired width */
  text-align: center;
}

.movie-card img {
  width: 100%;    /* image fills the card width */
  height: auto;   /* maintain aspect ratio */
  border-radius: 5px;
}

.movie-card p {
  font-size: 0.85rem; /* smaller text under image */
  margin-top: 5px;
}
/* highlighting movie card */
.movie-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  transition: all 0.3s ease; /* smooth hover effect */
  border: 2px solid transparent; /* default border */
}

.movie-card img:hover {
  transform: scale(1.05); /* slightly enlarge on hover */
  border: 2px solid #ffffff; /* highlight edge on hover */
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5); /* optional glow effect */
}

.top-favorites .movie img:hover {
  transform: scale(1.05); /* optional, slightly enlarge on hover */
}

/* Horizontal Scroll Sections (optional for left-column embeds) */
.scrollable-embed {
  overflow-x: auto;
  margin-top: 10px;
}

.scrollable-embed iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Vertical Scroll Sections (watchlist & recent activity) */
.scrolling-wrapper-vertical {
  display: flex;
  flex-direction: column;
  max-height: 500px;
  overflow-y: auto;
  gap: 15px;
  padding-right: 10px;
}

.scrolling-wrapper-vertical::-webkit-scrollbar {
  width: 8px;
}

.scrolling-wrapper-vertical::-webkit-scrollbar-thumb {
  background-color: #f39c12;
  border-radius: 4px;
}

/* Section Headings */
section h2 {
  margin-bottom: 10px;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
}

.main-content {
  display: flex;
  gap: 2rem; /* space between columns */
  align-items: flex-start;
  margin: 2rem;
}

/* Left column takes ~65% width, right column ~35% */
.left-column {
  flex: 0 0 65%;
}

.right-column {
  flex: 0 0 35%;
}

/* Optional: make iframe responsive */
.playlist-container iframe {
  width: 100%;
  height: 415px; /* adjust as needed */
}