/* ===== Global ===== */
body {
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a, #0f0f0f);
  color: #f5f5f5;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  top: 0 !important;
}

/* ===== Header ===== */
.top-header {
  background: #111;
  border-bottom: 3px solid #ff0033;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  padding: 15px 30px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo {
  height: 80px;
  margin-right: 17px;
}
@media (min-width: 768px) {
  .logo { height: 90px; }
}
@media (min-width: 1200px) {
  .logo { height: 110px; }
}

.brand-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
}

.brand-text span {
  color: #ff0033; /* ให้ HUB เป็นสีแดง */
}


.promo-text {
  font-size: 1rem;
  font-weight: 500;
  color: #eee;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .promo-text { display: none !important; }
  .hero-section {
    display: none;
  }
}

/* ===== Language & Search ===== */
.search-box input {
  border: 1px solid #555;
  padding: 0.5rem 1rem;
  background: #1c1c1c;
  color: #fff;
  width: 240px;
  border-radius: 8px;
}
.search-box input::placeholder { color: #aaa; }

.btn-search {
  background: linear-gradient(45deg, #28a745, #1f9e40);
  color: #fff;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: 0.3s;
}
.btn-search:hover {
  background: linear-gradient(45deg, #34d058, #2ebf50);
  transform: scale(1.05);
}

.language-switcher .btn-outline-light {
  border-color: #555;
  color: #ddd;
}
.language-switcher .btn-outline-light:hover {
  background: #ff0033;
  border-color: #ff0033;
  color: #fff;
  box-shadow: 0 0 12px rgba(255,0,60,0.8);
}

/* ปุ่ม Support */
.btn-danger {
  background: linear-gradient(45deg, #ff0033, #ff3366);
  border: none;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255,0,60,0.6);
  transition: all 0.3s ease;
}
.btn-danger:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(255,0,80,0.9);
}

/* ===== Navbar ===== */
.navbar {
  border-top: 2px solid #ff0033;
  background: rgba(17, 17, 17, 0.95) !important;
  backdrop-filter: blur(6px);
}

.navbar-nav .nav-link {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  color: #fff !important;
  transition: 0.3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ff0033 !important;
  text-shadow: 0 0 8px rgba(255,0,64,0.9);
  border-bottom: 2px solid #ff0033;
}
@media (min-width: 992px) {
  .navbar-nav .nav-link {
    font-size: 1.4rem !important;
    padding: 1rem 1.5rem !important;
  }
}

/* ===== Sidebar ===== */
.sidebar {
  background: rgba(20,20,20,0.85);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}
.sidebar h6 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ff0033;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(255,0,64,0.8);
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  color: #ccc;
  border-radius: 8px;
  transition: 0.3s;
}
.sidebar a:hover {
  background: linear-gradient(90deg, #ff0033, #ff6699);
  color: #fff;
  transform: translateX(8px);
  box-shadow: 0 0 14px rgba(255,0,80,0.8);
}

/* ===== Movie Card ===== */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.movie-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
}
.movie-card img.movie-poster {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}
.movie-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(255,0,60,0.4);
}
small.text-muted {
  color: #fff !important;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
}

.movie-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.movie-card:hover .movie-overlay { opacity: 1; }

.movie-overlay h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
}
.movie-overlay .play-btn {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(45deg, #ff0033, #ff3366);
  color: #fff;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}
.movie-overlay .play-btn:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

/* ===== Pagination ===== */
.custom-pagination .page-item .page-link {
  background-color: #222;
  color: #fff;
  border: none;
  margin: 0 2px;
  padding: 10px 18px;
  font-size: 0.9rem;
  border-radius: 50px;
  transition: 0.3s;
}
.custom-pagination .page-item .page-link:hover {
  background-color: #555;
}
.custom-pagination .page-item.active .page-link {
  background: linear-gradient(45deg, #ff0033, #ff6699);
  font-weight: bold;
  color: #fff;
  box-shadow: 0 0 10px rgba(255,0,60,0.8);
}
.custom-pagination .page-item.disabled .page-link {
  background-color: #222;
  color: #777;
  pointer-events: none;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .sidebar { display: none !important; }
  .dropdown .btn { width: 100% !important; }
  .search-box { width: 100% !important; }
  .movie-card { width: 100% !important; }
}

.section-title {
  margin-bottom: 30px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 6px rgba(255,0,64,0.7);
}
.dropdown-menu {
  background: #1a1a1a;
  border: 1px solid #ff0033;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.dropdown-menu .dropdown-item {
  color: #eee;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item:hover {
  background: linear-gradient(90deg, #ff0033, #ff3366);
  color: #fff;
}
.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 15px;
}

.hero-section h1 span {
  color: #ff0033; /* ขับคำว่า XMOVIEHUB ให้เด่น */
}


