* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #111;
    color: #fff;
}

/* Header */
header {
    background: #ffffff;
    padding: 0px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
   
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
}
.blue { color: blue; }
.green { color: green; }

header h1 {
    color: #ff3c00;
    font-size: 45px;
}

nav a {
    color: rgb(0, 0, 0);
    margin-left: 20px;
    text-decoration: none;
}

nav a:hover {
    color: #ff3c00;
}

/* Movies Section */
.movies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 30px;
}

.movie-card {
    background: #1c1c1c;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

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

.movie-card h3 {
    margin: 0px 0;
}

.movie-card button {
    background: #da471a;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.movie-card button:hover {
    background: #ff5722;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: #000;
}

.scroll-text {
    width: 100%;
    overflow: hidden;
    background: #1a0101;
    color: rgb(240, 12, 12);
    white-space: nowrap;
}

.scroll-text p {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
.auth-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Log in button */
.login-btn {
  text-decoration: none;
  color: #1da1f2;
  font-weight: bold;
  padding: 8px 16px;
  border: 2px solid #1da1f2;
  border-radius: 6px;
  transition: 0.3s;
}

.login-btn:hover {
  background-color: #1da1f2;
  color: #fff;
}

/* Sign up button */
.signup-btn {
  text-decoration: none;
  color: #fff;
  background-color: green;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  transition: 0.3s;
}

.signup-btn:hover {
  background-color: darkgreen;
}

/* Icon spacing */
.auth-buttons span {
  margin-left: 5px;
}

/* =========================
   Mobile Responsive CSS
========================= */

/* Tablet & small screen */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    padding: 10px 15px;
    text-align: center;
  }

  header h1 {
    font-size: 32px;
    margin: 10px 0;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    margin: 0 10px;
    font-size: 14px;
  }

  .auth-buttons {
    margin-top: 10px;
  }

  .movies {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    padding: 15px;
    gap: 15px;
  }
}

/* Mobile screen */
@media (max-width: 480px) {

  header h1 {
    font-size: 26px;
  }

  .logo {
    font-size: 18px;
  }

  nav a {
    display: inline-block;
    margin: 5px 8px;
    font-size: 13px;
  }

  .movies {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
    gap: 10px;
  }

  .movie-card {
    padding: 10px;
  }

  .movie-card h3 {
    font-size: 14px;
  }

  .movie-card button {
    padding: 6px 10px;
    font-size: 13px;
  }

  footer {
    font-size: 12px;
  }

  .scroll-text p {
    font-size: 14px;
  }

  .login-btn,
  .signup-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}


/* Hamburger menu default hidden */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #000;
  user-select: none;
  padding: 5px 10px;
}

/* Mobile responsive */
@media (max-width: 768px) {

  /* Show hamburger */
  .menu-toggle {
    display: block;
  }

  /* Hide normal nav links initially */
  nav#main-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px; /* header height adjust */
    right: 10px;
    width: 160px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 10px 0;
    z-index: 1000;
  }

  nav#main-nav.show {
    display: flex;
  }

  nav#main-nav a {
    padding: 10px 15px;
    color: #000;
  }

  nav#main-nav a:hover {
    background-color: #ff3c00;
    color: #fff;
  }

  /* Header stacked on mobile */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .logo {
    margin-bottom: 10px;
  }
}
/* Mobile search input */
.heading-search input[type="search"] {
  width: 180px;          /* Mobile-এ সুন্দর ছোট */
  height:  32px;          /* fixed height */
  padding: 5px 6px;        /* top-bottom padding 0, left-right 6px */
  font-size: 13.5px;       /* text ছোট কিন্তু readable */
  line-height: 32px;     /* এক লাইনে text রাখে */
  white-space: nowrap;   /* line break বন্ধ */
  overflow: hidden;      /* কোনো overflow হলে hide করে */
  border: 1px solid #ccc; /* light border */
  border-radius: 10px;     /* rounded edges */
  box-sizing: border-box;
  outline: none;
           /* focus outline remove */
  transition: 0.2s;      /* smooth effect */
}

/* focus হলে subtle highlight */
.heading-search input[type="search"]:focus {
  border-color: #4CAF50;  /* green highlight */
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}


.suggestions {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  width: 200px;
  max-height: 180px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.suggestions div {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
}

.suggestions div:hover {
  background: #f1f3f5;
}
.heading-search {
  position: relative;
}

/* Footer Styling */
footer {
  background-color: #222;       /* Dark background */
  color: #fff;                  /* White text */
  padding: 20px 0;              /* Vertical padding */
  text-align: center;           /* Centered text */
  font-size: 14px;              /* Small readable font */
}

footer a {
  color: #fff;                  /* White links */
  text-decoration: none;        /* Remove underline */
  margin: 0 8px;                /* Space between links */
  transition: color 0.3s ease;  /* Smooth hover effect */
}

footer a:hover {
  color: #ff9800;               /* Highlight color on hover */
  text-decoration: underline;   /* Optional underline on hover */
}

footer p {
  margin-top: 10px;             /* Space above copyright */
  font-size: 13px;              /* Slightly smaller text for copyright */
}


/* watch box */


.watch-box {
  max-width: 340px;
  margin: auto;
  text-align: center;
}

/* Buttons */
.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.btn {
  text-decoration: none;
  color: #fff;
  padding: 5px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 13px;
  transition: 0.3s;
}

/* Ad buttons */
.btn.ad {
  background: #ff0000;
}

/* Original button (center & big) */
.btn.main {
  grid-column: span 2;
  background: linear-gradient(45deg, #f30b0b, #ff6a00);
  font-size: 15px;
}

.btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Note */
.note-box {
  margin-top: 10px;
  background: #1f1f1f;
  color: #fff;
  padding: 3px;
  font-size: 13px;
  border-radius: 3px;
  border-left: 4px solid #ff9800;
}
