/* Global */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #121212;
  color: #f5f5f5;
  font-family: Arial, sans-serif;
}

/* Header */
header {
  background: #1e1e1e;
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
header .logo:hover {
  color: #0d6efd;
}

/* Search Bar */
.search-bar .form-control,
.search-bar input {
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
}
.search-bar .form-control:focus,
.search-bar input:focus {
  background-color: #2a2a2a;
  color: #fff;
  border-color: #0d6efd;
  box-shadow: none;
}

/* Categories (pill buttons) */
.categories .btn {
  border-radius: 20px;
  padding: 6px 18px;
  margin: 5px;
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #3a3a3a;
  transition: 0.3s ease-in-out;
}
.categories .btn:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* Tags */
.tags span,
.tags-container span {
  background: #2a2a2a;
  border-radius: 20px;
  padding: 6px 12px;
  margin: 5px 4px 0 0;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  color: #f5f5f5;
  border: 1px solid #3a3a3a;
  transition: all 0.3s ease;
}
.tags span:hover,
.tags-container span:hover {
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.6);
}

/* Center login section only */
.login-wrapper {
  min-height: 20vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #121212; /* Page background */
}

/* Tags Slider */
.tags-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tags-container {
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  flex: 1;
  padding: 5px 0;
}
.tags-container::-webkit-scrollbar {
  display: none;
}
.arrow-btn {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
  font-size: 18px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
  transition: 0.3s;
}
.arrow-btn:hover {
  background: rgba(13, 110, 253, 0.8);
  color: #fff;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.8);
}

/* Movie Cards */
.movie-card {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}
.movie-card:hover {
  transform: scale(1.05);
}
.movie-card img,
.movie-thumbnail {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
.movie-card .card-body {
  padding: 10px;
}
.movie-details {
  margin-top: 20px;
}

/* Download buttons */
.btn-download {
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 30px;
  transition: transform 0.2s ease;
}
.btn-download:hover {
  transform: translateY(-2px);
}

/* Trailer */
iframe {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* Login Card */
.login-card {
  max-width: 400px;
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  padding: 30px;
  background: #1e1e1e;
  color: #fff;
}

/* Footer */
footer {
  background-color: #1e1e1e;
  padding: 40px 0;
  margin-top: 60px;
}
footer h5 {
  font-weight: bold;
  margin-bottom: 15px;
}
footer p,
footer a {
  color: #aaa;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}
footer a:hover,
footer p:hover {
  color: #0d6efd;
}
.tags-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tags-container {
    display: flex;
    justify-content: center;   /* ⬅️ Center align tags */
    gap: 15px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px 0;
    max-width: 80%;            /* keeps them centered with arrows */
}

.tags-container::-webkit-scrollbar {
    display: none; /* hide scrollbar */
}

.tags-container a {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.tags-container a:hover {
    color: #007bff;
}

.tags-container a.active {
    color: #007bff;
    font-weight: bold;
}
/* Dark mode pagination */
.pagination {
    margin: 0;
}
.pagination .page-link {
    background-color: #222; /* dark background */
    border: 1px solid #444;
    color: #fff;
}
.pagination .page-link:hover {
    background-color: #444;
    color: #fff;
}
.pagination .active .page-link {
    background-color: #0d6efd; /* bootstrap primary */
    border-color: #0d6efd;
    color: #fff;
}
.pagination .disabled .page-link {
    background-color: #333;
    border-color: #444;
    color: #777;
}
.text-muted {
    color:#fff !important;
}

.small, small {
    margin: 20px;
}
.homeanchor{
  text-decoration: none;
  color: #fff;
}