:root {
    --main-bg: #141414;
    --accent-red: #E50914;
    --text-white: #ffffff;
    --gray-text: #b3b3b3;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--main-bg);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px 4%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 10%, transparent);
    z-index: 1000;
}

.logo {
    color: var(--accent-red);
    font-size: 1.8rem;
    font-weight: bold;
    margin-right: 40px;
}

.nm:link, .nm:visited, .nm:hover, .nm:active {
    color: inherit;
    text-decoration: none;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gray-text);
}

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0)), 
                url('https://res.cloudinary.com/dr1rn40sn/image/upload/v1773009265/dhurandhar-pro_lehi6g.avif'); /* Replace with your hero image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 4%;
}

.hero-content {
    max-width: 500px;
}

.category {
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-buttons button {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.btn-play {
    background-color: white;
    color: black;
}

.btn-list {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
}

/* Movie Rows */
.content {
    padding: 20px 4%;
    margin-top: -100px; /* Overlap effect */
}

.tv {
    padding: 20px 4%;
}

.row-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.movie-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    scrollbar-width: none; /* Hides scrollbar in Firefox */
}

.movie-row::-webkit-scrollbar {
    display: none; /* Hides scrollbar in Chrome/Safari */
}

.movie-card img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: block;
}

.movie-card img:hover {
    transform: scale(1.05);
}

/* Container for relative positioning of buttons */
.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* The actual scrolling row */
.movie-list {
  display: flex;
  overflow-x: auto; /* Enables horizontal scrolling */
  scroll-behavior: smooth; /* Makes the scrolling glide nicely */
  gap: 15px; /* Space between movie cards */
  padding: 10px 0;
  
  /* Hides the default scrollbar for a cleaner look */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.movie-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Ensure movie cards don't shrink and stay in a row */
.movie-card {
  flex: 0 0 auto; 
  width: 200px; /* Adjust this to match your current poster width */
}

/* Button Styling */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
  color: white;
  border: none;
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items:  center;
  cursor: pointer;
  z-index: 10; /* Keeps buttons on top of the images */
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.1s ease, text-shadow 0.1s ease;
}

.slide-btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.slide-btn:active {
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-red), 0 0 20px var(--accent-red);
}

.left-btn {
  left: 0;
}

.right-btn {
  right: 0;
}
