
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-bg: #1a1a1a;
  --secondary-bg: #2d2d2d;
  --header-bg: #0f0f0f;
  --accent-red: #dc3545;
  --accent-green: #28a745;
  --accent-orange: #ff9800;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #3a3a3a;
  --nav-height: 60px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

.mt-4 { margin-top: 25px; }
.header {
  background-color: var(--header-bg);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1010;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0; 
}

.logo-link {
  display: block;
  text-decoration: none;
}

.logo-img {
  height: 50px; 
  width: auto;
  display: block;
  object-fit: contain;
}

.search-bar {
  display: flex;
  flex: 1;
  max-width: 500px;
  background-color: var(--secondary-bg);
  border-radius: 5px;
  overflow: hidden;
}

#searchInput {
  flex: 1;
  padding: 10px 15px;
  border: none;
  background-color: transparent;
  color: var(--text-primary);
  outline: none;
  font-size: 14px;
}

#searchInput::placeholder {
  color: var(--text-secondary);
}

.search-btn {
  background-color: var(--secondary-bg);
  border: none;
  padding: 10px 15px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-btn:hover {
  background-color: var(--border-color);
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.btn-hollywood,
.btn-animevlix {
  padding: 8px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: opacity 0.3s;
}

.btn-hollywood {
  background-color: var(--accent-red);
  color: white;
}

.btn-animevlix {
  background-color: var(--accent-green);
  color: white;
}
.nav {
  background-color: var(--secondary-bg);
  padding: 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  gap: 5px;
  overflow-x: visible; 
  align-items: center;
  height: var(--nav-height);
}

.nav-link {
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.3s;
  border-bottom: 2px solid transparent;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--border-color);
  border-bottom-color: var(--accent-red);
}
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--secondary-bg);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  z-index: 100;
  top: 100%;
  left: 0;
  border-radius: 0 0 5px 5px;
  border: 1px solid var(--border-color);
}

.dropdown-content a {
  color: var(--text-primary);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: var(--accent-red);
  color: white;
}

@media (min-width: 993px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}
.filter-bar {
  background-color: var(--primary-bg);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.filter-btn:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}

.filter-btn.telegram {
  background-color: #0088cc;
  border-color: #0088cc;
}

.filter-btn.highlight {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
  font-weight: 600;
}
.notice-bar {
  background-color: var(--accent-red);
  color: #000000;
  padding: 12px 20px;
  border-radius: 4px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.notice-bar p { margin: 0; }
.main-content {
  padding: 30px 0;
  min-height: calc(100vh - 300px);
}
.movies-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); 
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 1200px) {
  .movies-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 768px) {
  .movies-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
}
.movie-card {
  background-color: var(--secondary-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column; 
  color: inherit;
  width: 100%;
  height: 100%;
}

.movie-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3; 
  overflow: hidden;
  flex-shrink: 0; 
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.quality-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--accent-orange);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.movie-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.movie-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-description {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: auto; 
  height: 32px; 
  overflow: hidden; 
  white-space: normal;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 40px;
}
.page-btn, .page-number {
  padding: 8px 15px;
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: white;
  cursor: pointer;
}
.page-number.active {
  background-color: var(--accent-red);
}

.footer {
  background-color: #000000;
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 50px;
  color: #cccccc;
  text-align: center;
  font-size: 14px;
}
.footer-content { margin-bottom: 30px; }
.footer-content h3 { color: var(--text-primary); font-size: 18px; font-weight: 700; margin-bottom: 15px; margin-top: 30px; }
.footer-content h3:first-child { margin-top: 0; }
.footer-content p { margin-bottom: 15px; line-height: 1.8; }
.footer-highlight { color: #ffffff; font-weight: 500; }
.footer-bottom { 
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 20px; border-top: 1px solid #222; 
    flex-wrap: wrap; gap: 15px; 
}
.footer-links { display: flex; gap: 20px; justify-content: center;}
.footer-links a { color: #cccccc; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-green); }
@media (max-width: 992px) {
  .header-content { flex-direction: column; align-items: stretch; }
  .logo { justify-content: center; width: 100%; margin-bottom: 10px; }
  .logo-img { height: 40px; }
  .search-bar { max-width: 100%; margin: 5px 0 10px; }
  .header-buttons { justify-content: center; }
  .nav { position: sticky; top: 0; z-index: 1000; overflow: visible; }
  .nav-links { 
    display: flex; 
    align-items: center; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    height: 60px; 
    width: 100%; 
    padding: 0 5px; 
    gap: 0; 
    scrollbar-width: none; 
  }
  .nav-links::-webkit-scrollbar { display: none; }
  
  .nav-link { 
    flex-shrink: 0; 
    padding: 0 15px; 
    height: 60px; 
    display: flex; 
    align-items: center; 
    font-size: 14px; 
    font-weight: 600; 
    white-space: nowrap; 
    border-bottom: 2px solid transparent; 
  }
  
  .dropdown.active .nav-link { 
    color: white; 
    border-bottom-color: var(--accent-red); 
    background-color: rgba(255,255,255,0.05); 
  }
  
  .dropdown { position: static; display: block; }
  
  .dropdown-content {
    position: absolute; left: 0; top: 60px; width: 100%;
    background-color: rgba(20, 20, 20, 0.98); 
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    z-index: 9999;
    
    max-height: 0; opacity: 0; visibility: hidden; overflow: hidden;
    padding: 0 20px;
    
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .dropdown.active .dropdown-content {
    max-height: 500px; opacity: 1; visibility: visible; padding: 20px;
  }
  
  .dropdown-content a { 
    color: #cccccc; 
    padding: 12px; 
    font-size: 13px; 
    background-color: rgba(255,255,255,0.05); 
    border-radius: 5px; 
    text-align: center; 
    border: 1px solid transparent; 
  }
  
  .dropdown-content a:hover, .dropdown-content a:active { 
    background-color: var(--accent-red); 
    color: white; 
    border-color: var(--accent-red); 
  }

  .footer-bottom { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
} 
.notification-bar {
  background-color: #2bc48a;
  color: #1a1a1a;
  padding: 10px 20px;       
  border-radius: 6px;
  display: flex;
  align-items: center;     
  justify-content: space-between;
  margin-bottom: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* =========================================
   1. TOP INTRO (Compact Size)
   ========================================= */
.site-intro-box {
    background-color: transparent;
    padding: 15px 0;   /* Reduced vertical padding significantly */
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.site-intro-box h1 {
    font-size: 1.8rem; /* Reduced from 2.5rem to 1.8rem */
    color: var(--text-primary);
    margin-bottom: 8px; /* Reduced space below title */
    font-weight: 700;
    line-height: 1.2;
}

.site-intro-box p {
    font-size: 0.95rem; /* Reduced from 1.1rem to 0.95rem */
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* =========================================
   2. BOTTOM DESCRIPTION (Fixed Positioning)
   ========================================= */
.bottom-description {
    display: block;
    width: 100%;
    clear: both;
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.bottom-description h2 {
    font-size: 1.5rem; /* Slightly smaller for balance */
    color: var(--accent-green);
    margin-bottom: 15px;
}

.bottom-description p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 15px auto;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .site-intro-box h1 { font-size: 1.5rem; }
    .bottom-description { margin-top: 40px; padding: 20px; }
}