:root {
  --primary-color: #800020;
  --primary-dark: #4d0014;
  --primary-light: #b3002d;
  --text-color: #ffffff;
  --background-dark: #141414;
  --background-light: #1f1f1f;
  --hover-color: #ff1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--background-dark);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar.scrolled {
  background: var(--background-dark);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  height: 40px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--hover-color);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-container {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.search-bar {
  background: rgba(0,0,0,0.75);
  border: 1px solid #333;
  color: var(--text-color);
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border-radius: 4px;
  width: 200px;
  transition: all 0.3s ease;
}

.search-bar:focus {
  width: 300px;
  background: rgba(0,0,0,0.9);
  border-color: var(--primary-color);
  outline: none;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
}

/* Hero Banner */
.hero-banner {
  height: 80vh;
  position: relative;
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 4%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.play-btn,
.more-info-btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.play-btn {
  background: var(--text-color);
  color: var(--background-dark);
}

.more-info-btn {
  background: rgba(109, 109, 110, 0.7);
  color: var(--text-color);
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.75);
}

.more-info-btn:hover {
  background: rgba(109, 109, 110, 0.4);
}

/* Content Wrapper */
.content-wrapper {
  padding: 0 4%;
  margin-top: -2rem;
}

.row {
  margin-bottom: 3rem;
}

.row h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.movie-row {
  position: relative;
  display: flex;
  align-items: center;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: all 0.3s ease;
}

.movie-row:hover .scroll-btn {
  opacity: 1;
}

.scroll-btn:hover {
  background: var(--primary-color);
}

.scroll-btn.left {
  left: -20px;
}

.scroll-btn.right {
  right: -20px;
}

.list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
}

.list::-webkit-scrollbar {
  display: none;
}

.list img {
  width: 200px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.list img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: var(--background-light);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  position: relative;
}

.modal-body {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

.modal-body img {
  width: 300px;
  border-radius: 8px;
}

.modal-text {
  flex: 1;
}

.modal-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.meta-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #999;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.server-selector {
  padding: 1rem 2rem;
  border-top: 1px solid #333;
}

.server-selector select {
  background: var(--background-dark);
  color: var(--text-color);
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #333;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-dark);
  display: none;
  z-index: 1001;
}

.search-header {
  padding: 2rem 4%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.search-input-container {
  position: relative;
  flex: 1;
}

.search-input-container i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

#search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--background-light);
  border: none;
  border-radius: 4px;
  color: var(--text-color);
  font-size: 1.2rem;
}

.results {
  padding: 2rem 4%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.results img {
  width: 100%;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.results img:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: var(--background-light);
  padding: 4rem 4% 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  gap: 4rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-column h3 {
  color: #999;
  margin-bottom: 1rem;
}

.footer-column a {
  display: block;
  color: #999;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--text-color);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .modal-body {
    flex-direction: column;
  }
  
  .modal-body img {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .search-bar {
    width: 150px;
  }
  
  .search-bar:focus {
    width: 200px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .list img {
    width: 150px;
  }
  
  .modal-content {
    width: 95%;
  }
}