:root {
    --bg-main: #0f1014;
    --bg-card: #1a1c23;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --accent: #e50914;
    --accent-hover: #b80710;
}
body {
    background-color: var(--bg-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}
#loading {
    background-color: rgba(15, 16, 20, 0.9);
    backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999;
}
.transition-navbar {
    background-color: transparent;
    transition: background-color 0.4s ease;
    z-index: 1000;
}
.transition-navbar.scrolled {
    background-color: #0f1014;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}
.text-accent {
  color: var(--accent); 
}
.search-input {
    background-color: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    transition: 0.3s;
}
.search-input:focus {
    background-color: rgba(0,0,0,0.8);
    border-color: var(--accent);
    color: white;
    box-shadow: none;
}
.hero-section {
    height: 80vh;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, #0f1014 0%, rgba(15, 16, 20, 0.5) 50%, rgba(15, 16, 20, 0.8) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-title {
  font-size: 4rem;
  font-weight: 900; 
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5); 
}
.btn-play {
  background-color: white; color: black; 
  font-weight: bold; 
  transition: 0.3s; 
}
.btn-play:hover { 
  background-color: rgba(255,255,255,0.8); 
}
.no-scrollbar::-webkit-scrollbar { 
  display: none; 
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none; 
}
.btn-genre {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.3s;
}
.btn-genre:hover {
  border-color: white; 
}
.btn-genre.active {
    background-color: white;
    color: black;
    border-color: white;
}
.movie-card {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    z-index: 10;
}
.movie-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}
.movie-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 20px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.movie-card:hover .movie-overlay {
  opacity: 1; 
}
.movie-title { 
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0; 
}
.custom-pagination .page-link {
    background-color: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 10px 15px;
}
.custom-pagination .page-link:hover {
  color: white; 
  background: transparent; 
}
.custom-pagination .page-item.active .page-link {
    background-color: transparent;
    color: white;
    border-bottom: 2px solid var(--accent);
}
.details-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1050;
    overflow-y: auto;
}
.details-card-glass {
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
}
.close-details-btn {
    position: absolute; top: 30px; right: 30px;
    width: 50px; height: 50px; z-index: 1100;
}
.rating-color { 
  color: #e50914; 
}
.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20; 
    transition: all 0.3s ease;
}
.fav-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}
.fav-btn.active {
    color: var(--accent);
    border-color: var(--accent);
}